Fix (unreported): missing relations update after adding scene time node
This just moves the relations update to a lower level function that is used by other functions. Eventually, the special case for this node should be generalized.
This commit is contained in:
parent
5e8b42bf86
commit
bb0da7dbbd
|
@ -65,6 +65,7 @@
|
|||
#include "BKE_animsys.h"
|
||||
#include "BKE_bpath.h"
|
||||
#include "BKE_colortools.h"
|
||||
#include "BKE_context.h"
|
||||
#include "BKE_cryptomatte.h"
|
||||
#include "BKE_global.h"
|
||||
#include "BKE_icons.h"
|
||||
|
@ -2168,6 +2169,10 @@ bNode *nodeAddNode(const struct bContext *C, bNodeTree *ntree, const char *idnam
|
|||
|
||||
BKE_ntree_update_tag_node_new(ntree, node);
|
||||
|
||||
if (node->type == GEO_NODE_INPUT_SCENE_TIME) {
|
||||
DEG_relations_tag_update(CTX_data_main(C));
|
||||
}
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
|
|
|
@ -1273,10 +1273,6 @@ static bNode *rna_NodeTree_node_new(bNodeTree *ntree,
|
|||
ED_node_tree_propagate_change(C, bmain, ntree);
|
||||
WM_main_add_notifier(NC_NODE | NA_EDITED, ntree);
|
||||
|
||||
if (node->type == GEO_NODE_INPUT_SCENE_TIME) {
|
||||
DEG_relations_tag_update(bmain);
|
||||
}
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue