Fix #28503: Selecting a Grease Pencil from the Properties panel does not update 3D...
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 4 Sep 2011 15:53:12 +0000 (15:53 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 4 Sep 2011 15:53:12 +0000 (15:53 +0000)
Added missing notifiers.

source/blender/makesrna/intern/rna_nodetree.c
source/blender/makesrna/intern/rna_object.c
source/blender/makesrna/intern/rna_scene.c
source/blender/makesrna/intern/rna_space.c

index 56492a52da93d19730028ee8cde304aef4aea129..d6e475fdbad515637f232b664ce62dcb675220a2 100644 (file)
@@ -2736,6 +2736,7 @@ static void rna_def_nodetree(BlenderRNA *brna)
        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);
index ad323b0aba448cf17d12e55637c7697e1952b7af..4e2be7682f854d68b310e437936558037a6f508a 100644 (file)
@@ -2297,6 +2297,7 @@ static void rna_def_object(BlenderRNA *brna)
        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);
index cc1e7d9390b3923c944eda069c494a9325dd2071..3c60a3b4cd74365709b41beb1a40c369d9abaf53 100644 (file)
@@ -3517,6 +3517,7 @@ void RNA_def_scene(BlenderRNA *brna)
        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);
index 7a7debe1bf57c623599615b4b366819735ce84e3..3536091001547cb4c2a8ffd8b6154acbc876727d 100644 (file)
@@ -1622,6 +1622,7 @@ static void rna_def_space_image(BlenderRNA *brna)
        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);