[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45605] trunk/blender/source/blender/ makesrna/intern/rna_scene.c: Fix missing cycles update when tweaking some render layer settings.

Brecht Van Lommel brechtvanlommel at pandora.be
Fri Apr 13 16:18:33 CEST 2012


Revision: 45605
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45605
Author:   blendix
Date:     2012-04-13 14:18:33 +0000 (Fri, 13 Apr 2012)
Log Message:
-----------
Fix missing cycles update when tweaking some render layer settings.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_scene.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_scene.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_scene.c	2012-04-13 13:55:55 UTC (rev 45604)
+++ trunk/blender/source/blender/makesrna/intern/rna_scene.c	2012-04-13 14:18:33 UTC (rev 45605)
@@ -1906,7 +1906,7 @@
 	prop = RNA_def_property(srna, "use", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_negative_sdna(prop, NULL, "layflag", SCE_LAY_DISABLE);
 	RNA_def_property_ui_text(prop, "Enabled", "Disable or enable the render layer");
-	if (scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
+	if (scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_Scene_glsl_update");
 	else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
 
 	prop = RNA_def_property(srna, "use_zmask", PROP_BOOLEAN, PROP_NONE);
@@ -1949,7 +1949,7 @@
 	prop = RNA_def_property(srna, "use_sky", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_SKY);
 	RNA_def_property_ui_text(prop, "Sky", "Render Sky in this Layer");
-	if (scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
+	if (scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, "rna_Scene_glsl_update");
 	else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
 
 	prop = RNA_def_property(srna, "use_edge_enhance", PROP_BOOLEAN, PROP_NONE);




More information about the Bf-blender-cvs mailing list