Fix my last commit cad4bfe: Added 'use_' prefix to Freestyle edge/face mark properties.
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Tue, 15 Apr 2014 05:44:08 +0000 (14:44 +0900)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Tue, 15 Apr 2014 05:44:08 +0000 (14:44 +0900)
release/scripts/startup/bl_operators/freestyle.py
source/blender/makesrna/intern/rna_mesh.c

index 73232232e23aaad396347810fe6d628ce7d0aeb7..453be519abf3c0a6b67e405384d9c0c54f51f368 100644 (file)
@@ -105,7 +105,7 @@ class SCENE_OT_freestyle_add_edge_marks_to_keying_set(bpy.types.Operator):
         bpy.ops.object.mode_set(mode='OBJECT', toggle=False)
         for i, edge in enumerate(mesh.edges):
             if not edge.hide and edge.select:
-                path = 'edges[%d].use_freestyle_edge_mark' % i
+                path = 'edges[%d].use_freestyle_mark' % i
                 ks.paths.add(mesh, path, index=0)
         bpy.ops.object.mode_set(mode=ob_mode, toggle=False)
         return {'FINISHED'}
@@ -136,7 +136,7 @@ class SCENE_OT_freestyle_add_face_marks_to_keying_set(bpy.types.Operator):
         bpy.ops.object.mode_set(mode='OBJECT', toggle=False)
         for i, polygon in enumerate(mesh.polygons):
             if not polygon.hide and polygon.select:
-                path = 'polygons[%d].use_freestyle_face_mark' % i
+                path = 'polygons[%d].use_freestyle_mark' % i
                 ks.paths.add(mesh, path, index=0)
         bpy.ops.object.mode_set(mode=ob_mode, toggle=False)
         return {'FINISHED'}
index b6ae637bbdee7355cf7654b1db7a5c5f88c884c3..4190ce466eac10edb7ea979953bde952197c36a9 100644 (file)
@@ -1860,7 +1860,7 @@ static void rna_def_medge(BlenderRNA *brna)
        RNA_def_property_boolean_sdna(prop, NULL, "flag", ME_LOOSEEDGE);
        RNA_def_property_ui_text(prop, "Loose", "Loose edge");
 
-       prop = RNA_def_property(srna, "freestyle_mark", PROP_BOOLEAN, PROP_NONE);
+       prop = RNA_def_property(srna, "use_freestyle_mark", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_funcs(prop, "rna_MEdge_freestyle_edge_mark_get", "rna_MEdge_freestyle_edge_mark_set");
        RNA_def_property_ui_text(prop, "Freestyle Edge Mark", "Edge mark for Freestyle line rendering");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
@@ -2064,7 +2064,7 @@ static void rna_def_mpolygon(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "Smooth", "");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
 
-       prop = RNA_def_property(srna, "freestyle_mark", PROP_BOOLEAN, PROP_NONE);
+       prop = RNA_def_property(srna, "use_freestyle_mark", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_funcs(prop, "rna_MPoly_freestyle_face_mark_get", "rna_MPoly_freestyle_face_mark_set");
        RNA_def_property_ui_text(prop, "Freestyle Face Mark", "Face mark for Freestyle line rendering");
        RNA_def_property_update(prop, 0, "rna_Mesh_update_data");