Commit: 12ed26444e50345b8aaa6d5b175ba435ece99dc7
Author: Joshua Leung
Date:   Fri Jul 27 17:15:07 2018 +1200
Branches: greasepencil-object
https://developer.blender.org/rB12ed26444e50345b8aaa6d5b175ba435ece99dc7

Fix: Forgot to rename a few properties in earlier RNA/DNA commit

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

M       release/scripts/startup/bl_ui/properties_grease_pencil_common.py
M       source/blender/makesrna/intern/rna_scene.c

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

diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py 
b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index d331da3569e..8e17c24688f 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -40,7 +40,7 @@ def gpencil_stroke_placement_settings(context, layout):
     if context.space_data.type != 'VIEW_3D':
         col.label(text="Stroke Placement:")
         row = col.row(align=True)
-        #row.prop_enum(ts, propname, 'VIEW')  # XXX: Now removed!
+        row.prop_enum(ts, propname, 'VIEW')
         row.prop_enum(ts, propname, 'CURSOR', text="Cursor")
 
 
diff --git a/source/blender/makesrna/intern/rna_scene.c 
b/source/blender/makesrna/intern/rna_scene.c
index 07d3b6a2ec4..741badd46d6 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -2450,21 +2450,21 @@ static void rna_def_tool_settings(BlenderRNA  *brna)
        RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL);
 
        /* Annotations - 2D Views Stroke Placement */
-       prop = RNA_def_property(srna, "gpencil_stroke_placement_view2d", 
PROP_ENUM, PROP_NONE);
+       prop = RNA_def_property(srna, "annotation_stroke_placement_view2d", 
PROP_ENUM, PROP_NONE);
        RNA_def_property_enum_bitflag_sdna(prop, NULL, "gpencil_v2d_align");
        RNA_def_property_enum_items(prop, annotation_stroke_placement_items);
        RNA_def_property_ui_text(prop, "Stroke Placement (2D View)", "");
        RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL);
 
        /* Annotations - Sequencer Preview Stroke Placement */
-       prop = RNA_def_property(srna, 
"gpencil_stroke_placement_sequencer_preview", PROP_ENUM, PROP_NONE);
+       prop = RNA_def_property(srna, 
"annotation_stroke_placement_sequencer_preview", PROP_ENUM, PROP_NONE);
        RNA_def_property_enum_bitflag_sdna(prop, NULL, "gpencil_seq_align");
        RNA_def_property_enum_items(prop, annotation_stroke_placement_items);
        RNA_def_property_ui_text(prop, "Stroke Placement (Sequencer Preview)", 
"");
        RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL);
 
        /* Annotations - Image Editor Stroke Placement */
-       prop = RNA_def_property(srna, "gpencil_stroke_placement_image_editor", 
PROP_ENUM, PROP_NONE);
+       prop = RNA_def_property(srna, 
"annotation_stroke_placement_image_editor", PROP_ENUM, PROP_NONE);
        RNA_def_property_enum_bitflag_sdna(prop, NULL, "gpencil_ima_align");
        RNA_def_property_enum_items(prop, annotation_stroke_placement_items);
        RNA_def_property_ui_text(prop, "Stroke Placement (Image Editor)", "");

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to