[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39910] trunk/blender/source/blender/ makesrna/intern: Fix #28503: Selecting a Grease Pencil from the Properties panel does not update 3D View

Sergey Sharybin g.ulairi at gmail.com
Sun Sep 4 17:53:12 CEST 2011


Revision: 39910
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39910
Author:   nazgul
Date:     2011-09-04 15:53:12 +0000 (Sun, 04 Sep 2011)
Log Message:
-----------
Fix #28503: Selecting a Grease Pencil from the Properties panel does not update 3D View

Added missing notifiers.

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

Modified: trunk/blender/source/blender/makesrna/intern/rna_nodetree.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_nodetree.c	2011-09-04 15:39:09 UTC (rev 39909)
+++ trunk/blender/source/blender/makesrna/intern/rna_nodetree.c	2011-09-04 15:53:12 UTC (rev 39910)
@@ -2736,6 +2736,7 @@
 	RNA_def_property_flag(prop, PROP_EDITABLE);
 	RNA_def_property_struct_type(prop, "GreasePencil");
 	RNA_def_property_ui_text(prop, "Grease Pencil Data", "Grease Pencil datablock");
+	RNA_def_property_update(prop, NC_NODE, NULL);
 	
 	prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE);
 	RNA_def_property_clear_flag(prop, PROP_EDITABLE);

Modified: trunk/blender/source/blender/makesrna/intern/rna_object.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_object.c	2011-09-04 15:39:09 UTC (rev 39909)
+++ trunk/blender/source/blender/makesrna/intern/rna_object.c	2011-09-04 15:53:12 UTC (rev 39910)
@@ -2297,6 +2297,7 @@
 	RNA_def_property_flag(prop, PROP_EDITABLE);
 	RNA_def_property_struct_type(prop, "GreasePencil");
 	RNA_def_property_ui_text(prop, "Grease Pencil Data", "Grease Pencil datablock");
+	RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, NULL);
 	
 	/* pose */
 	prop= RNA_def_property(srna, "pose_library", PROP_POINTER, PROP_NONE);

Modified: trunk/blender/source/blender/makesrna/intern/rna_scene.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_scene.c	2011-09-04 15:39:09 UTC (rev 39909)
+++ trunk/blender/source/blender/makesrna/intern/rna_scene.c	2011-09-04 15:53:12 UTC (rev 39910)
@@ -3517,6 +3517,7 @@
 	RNA_def_property_flag(prop, PROP_EDITABLE);
 	RNA_def_property_struct_type(prop, "GreasePencil");
 	RNA_def_property_ui_text(prop, "Grease Pencil Data", "Grease Pencil datablock");
+	RNA_def_property_update(prop, NC_SCENE, NULL);
 	
 	/* Transform Orientations */
 	prop= RNA_def_property(srna, "orientations", PROP_COLLECTION, PROP_NONE);

Modified: trunk/blender/source/blender/makesrna/intern/rna_space.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_space.c	2011-09-04 15:39:09 UTC (rev 39909)
+++ trunk/blender/source/blender/makesrna/intern/rna_space.c	2011-09-04 15:53:12 UTC (rev 39910)
@@ -1622,6 +1622,7 @@
 	RNA_def_property_flag(prop, PROP_EDITABLE);
 	RNA_def_property_struct_type(prop, "GreasePencil");
 	RNA_def_property_ui_text(prop, "Grease Pencil", "Grease pencil data for this space");
+	RNA_def_property_update(prop, NC_SPACE|ND_SPACE_IMAGE, NULL);
 
 	prop= RNA_def_property(srna, "use_grease_pencil", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "flag", SI_DISPGP);




More information about the Bf-blender-cvs mailing list