Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/makesrna/intern/rna_world.c')
-rw-r--r--source/blender/makesrna/intern/rna_world.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_world.c b/source/blender/makesrna/intern/rna_world.c
index 19109dbe3ce..9b5611f30d7 100644
--- a/source/blender/makesrna/intern/rna_world.c
+++ b/source/blender/makesrna/intern/rna_world.c
@@ -89,8 +89,9 @@ static void rna_World_use_nodes_update(bContext *C, PointerRNA *ptr)
Main *bmain = CTX_data_main(C);
Scene *scene = CTX_data_scene(C);
- if (wrld->use_nodes && wrld->nodetree == NULL)
+ if (wrld->use_nodes && wrld->nodetree == NULL) {
ED_node_shader_default(C, &wrld->id);
+ }
DEG_relations_tag_update(bmain);
rna_World_update(bmain, scene, ptr);