[Bf-blender-cvs] [11ad517] master: Fix: Changing Grease Pencil datablocks updates the view

Joshua Leung noreply at git.blender.org
Mon Dec 1 13:21:56 CET 2014


Commit: 11ad5175361ecdc8d4b4945cb16ac6ad8c7a35d9
Author: Joshua Leung
Date:   Tue Dec 2 00:37:00 2014 +1300
Branches: master
https://developer.blender.org/rB11ad5175361ecdc8d4b4945cb16ac6ad8c7a35d9

Fix: Changing Grease Pencil datablocks updates the view

===================================================================

M	source/blender/makesrna/intern/rna_scene.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 65ef074..61f1628 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -5741,7 +5741,7 @@ void RNA_def_scene(BlenderRNA *brna)
 	RNA_def_property_struct_type(prop, "GreasePencil");
 	RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_REFCOUNT);
 	RNA_def_property_ui_text(prop, "Grease Pencil Data", "Grease Pencil datablock");
-	RNA_def_property_update(prop, NC_SCENE, NULL);
+	RNA_def_property_update(prop, NC_GPENCIL | ND_DATA | NA_EDITED, NULL);
 	
 	/* Transform Orientations */
 	prop = RNA_def_property(srna, "orientations", PROP_COLLECTION, PROP_NONE);




More information about the Bf-blender-cvs mailing list