diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-10-23 16:37:00 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-10-23 16:38:09 +0300 |
commit | ca003d0f5cfc1f2cd511f33e045eac122c8aa4da (patch) | |
tree | 888d70bf1817e1a3c609453a047d0d635b51ec95 /source/blender | |
parent | f22385f28ec8b855f4ed84e94aa207986db6a09e (diff) |
Fix missing relations update after allocating compositor
Compositor has own node in the dependency graph, so need to make
sure relations are up to date.
This fixes wrong user counter when creating compositor nodes for
a new scene.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 7679ff41ba3..1d52b0011c1 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -1443,9 +1443,10 @@ static char *rna_SceneRenderView_path(PointerRNA *ptr) static void rna_Scene_use_nodes_update(bContext *C, PointerRNA *ptr) { Scene *scene = (Scene *)ptr->data; - - if (scene->use_nodes && scene->nodetree == NULL) + if (scene->use_nodes && scene->nodetree == NULL) { ED_node_composit_default(C, scene); + } + DEG_relations_tag_update(CTX_data_main(C)); } static void rna_Physics_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) |