diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-04 20:27:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-04 20:27:23 +0300 |
commit | 8af456313ae4dd0fd29f66d87a07037a9289e091 (patch) | |
tree | 3d54392596925db1867dc9bbbe38673d98a3a8da | |
parent | 0e37b49a2c2f3693db834295262b2f041799c542 (diff) |
dupli faces inherit scale wasnt using the right flag internally.
renamed...
dupli_frames_no_speed --> use_dupli_frames_speed
dupli_verts_rotation --> use_dupli_verts_rotation
dupli_faces_inherit_scale --> use_dupli_faces_scale
-rw-r--r-- | release/scripts/ui/properties_object.py | 8 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_object.c | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/release/scripts/ui/properties_object.py b/release/scripts/ui/properties_object.py index f24dda2ce8b..05a48225f82 100644 --- a/release/scripts/ui/properties_object.py +++ b/release/scripts/ui/properties_object.py @@ -242,20 +242,20 @@ class OBJECT_PT_duplication(ObjectButtonsPanel): col.prop(ob, "dupli_frames_on", text="On") col.prop(ob, "dupli_frames_off", text="Off") - layout.prop(ob, "dupli_frames_no_speed", text="No Speed") + layout.prop(ob, "use_dupli_frames_speed", text="Speed") elif ob.dupli_type == 'VERTS': - layout.prop(ob, "dupli_verts_rotation", text="Rotation") + layout.prop(ob, "use_dupli_verts_rotation", text="Rotation") elif ob.dupli_type == 'FACES': split = layout.split() col = split.column() - col.prop(ob, "dupli_faces_scale", text="Scale") + col.prop(ob, "use_dupli_faces_scale", text="Scale") if wide_ui: col = split.column() - col.prop(ob, "dupli_faces_inherit_scale", text="Inherit Scale") + col.prop(ob, "dupli_faces_scale", text="Inherit Scale") elif ob.dupli_type == 'GROUP': if wide_ui: diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c index a670fb244f6..0a4fa71c006 100644 --- a/source/blender/makesrna/intern/rna_object.c +++ b/source/blender/makesrna/intern/rna_object.c @@ -1788,18 +1788,18 @@ static void rna_def_object(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Dupli Type", "If not None, object duplication method to use."); RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, "rna_Object_dependency_update"); - prop= RNA_def_property(srna, "dupli_frames_no_speed", PROP_BOOLEAN, PROP_NONE); - RNA_def_property_boolean_sdna(prop, NULL, "transflag", OB_DUPLINOSPEED); - RNA_def_property_ui_text(prop, "Dupli Frames No Speed", "Set dupliframes to still, regardless of frame."); + prop= RNA_def_property(srna, "use_dupli_frames_speed", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_negative_sdna(prop, NULL, "transflag", OB_DUPLINOSPEED); + RNA_def_property_ui_text(prop, "Dupli Frames Speed", "Set dupliframes to use the frame."); // TODO, better descriptio! RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, "rna_Object_update"); - prop= RNA_def_property(srna, "dupli_verts_rotation", PROP_BOOLEAN, PROP_NONE); + prop= RNA_def_property(srna, "use_dupli_verts_rotation", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "transflag", OB_DUPLIROT); RNA_def_property_ui_text(prop, "Dupli Verts Rotation", "Rotate dupli according to vertex normal."); RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, NULL); - prop= RNA_def_property(srna, "dupli_faces_inherit_scale", PROP_BOOLEAN, PROP_NONE); - RNA_def_property_boolean_sdna(prop, NULL, "transflag", OB_DUPLIROT); + prop= RNA_def_property(srna, "use_dupli_faces_scale", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "transflag", OB_DUPLIFACES_SCALE); RNA_def_property_ui_text(prop, "Dupli Faces Inherit Scale", "Scale dupli based on face size."); RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, "rna_Object_update"); |