diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_light.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_light.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_light.c b/source/blender/makesrna/intern/rna_light.c index 67a9e481041..79ba5970007 100644 --- a/source/blender/makesrna/intern/rna_light.c +++ b/source/blender/makesrna/intern/rna_light.c @@ -95,8 +95,9 @@ static void rna_Light_use_nodes_update(bContext *C, PointerRNA *ptr) { Light *la = (Light *)ptr->data; - if (la->use_nodes && la->nodetree == NULL) + if (la->use_nodes && la->nodetree == NULL) { ED_node_shader_default(C, &la->id); + } rna_Light_update(CTX_data_main(C), CTX_data_scene(C), ptr); } |