diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-04-15 09:44:08 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-04-15 09:44:08 +0400 |
commit | e1e519bfc0a088a031b8015ac05ace618c5eff82 (patch) | |
tree | b08b06877c3a611cb36ef44c5c35aa33cd20942a | |
parent | 955634e17c3ec11254373300f6d6f36ccd3fa212 (diff) |
Fix my last commit cad4bfe: Added 'use_' prefix to Freestyle edge/face mark properties.
-rw-r--r-- | release/scripts/startup/bl_operators/freestyle.py | 4 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_mesh.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_operators/freestyle.py b/release/scripts/startup/bl_operators/freestyle.py index 73232232e23..453be519abf 100644 --- a/release/scripts/startup/bl_operators/freestyle.py +++ b/release/scripts/startup/bl_operators/freestyle.py @@ -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'} diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c index b6ae637bbde..4190ce466ea 100644 --- a/source/blender/makesrna/intern/rna_mesh.c +++ b/source/blender/makesrna/intern/rna_mesh.c @@ -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"); |