diff options
author | Jacques Lucke <jacques@blender.org> | 2021-12-29 21:40:00 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-12-29 21:40:14 +0300 |
commit | bb0da7dbbd4b210fce8c15714a3cb50a756d8075 (patch) | |
tree | 4c549a0147cf33d429b4e1bcd35275ee1bc632da /source/blender/blenkernel/intern | |
parent | 5e8b42bf865848e384d3b942002faf02fe70bd16 (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/node.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/node.cc b/source/blender/blenkernel/intern/node.cc index 67da16ae398..e61afe02f57 100644 --- a/source/blender/blenkernel/intern/node.cc +++ b/source/blender/blenkernel/intern/node.cc @@ -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; } |