[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29581] trunk/blender/source/blender/ makesrna/intern/rna_scene.c: * Small fix for Color management RNA.

Thomas Dinges dingto at gmx.de
Sun Jun 20 21:02:26 CEST 2010


Revision: 29581
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29581
Author:   dingto
Date:     2010-06-20 21:02:26 +0200 (Sun, 20 Jun 2010)

Log Message:
-----------
* Small fix for Color management RNA. 3D View didn't update on enabling/disabling Color Management. ND_SHADING > ND_SHADING_DRAW
Note: "ND_RENDER_OPTIONS" should trigger the update in the 3D View (as the 3D View listener listens to that) but that doesn't work for some reason. 

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	2010-06-20 18:55:31 UTC (rev 29580)
+++ trunk/blender/source/blender/makesrna/intern/rna_scene.c	2010-06-20 19:02:26 UTC (rev 29581)
@@ -2487,7 +2487,7 @@
 	prop= RNA_def_property(srna, "color_management", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "color_mgt_flag", R_COLOR_MANAGEMENT);
 	RNA_def_property_ui_text(prop, "Color Management", "Use color profiles and gamma corrected imaging pipeline");
-	RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS|NC_MATERIAL|ND_SHADING, "rna_RenderSettings_color_management_update");
+	RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS|NC_MATERIAL|ND_SHADING_DRAW, "rna_RenderSettings_color_management_update");
 	
 	prop= RNA_def_property(srna, "use_file_extension", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_EXTENSION);





More information about the Bf-blender-cvs mailing list