diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-02 11:00:34 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-02 11:00:34 +0400 |
commit | b2ae9d825c96ed73d2396b8da6e0c019a6384ff7 (patch) | |
tree | 267dcc85e082aeb9ca594d3ee752d19c84b5c72e /release | |
parent | 35535c2cb9dce98dc9eb7dec7337cce40ad6d9d9 (diff) |
- inconsistent rna names - use 'vertex_group_' as prefix, only ui scripts used this
- change curve offset to be 0.0 for its rest/default value (not 1.0)
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/ui/properties_physics_cloth.py | 8 | ||||
-rw-r--r-- | release/scripts/ui/properties_physics_softbody.py | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/release/scripts/ui/properties_physics_cloth.py b/release/scripts/ui/properties_physics_cloth.py index 099711f6dec..4fd7fc97418 100644 --- a/release/scripts/ui/properties_physics_cloth.py +++ b/release/scripts/ui/properties_physics_cloth.py @@ -105,7 +105,7 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel, bpy.types.Panel): col.prop(cloth, "use_pin_cloth", text="Pinning") sub = col.column() sub.active = cloth.use_pin_cloth - sub.prop_search(cloth, "mass_vertex_group", ob, "vertex_groups", text="") + sub.prop_search(cloth, "vertex_group_mass", ob, "vertex_groups", text="") sub.prop(cloth, "pin_stiffness", text="Stiffness") col.label(text="Pre roll:") @@ -113,7 +113,7 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel, bpy.types.Panel): # Disabled for now """ - if cloth.mass_vertex_group: + if cloth.vertex_group_mass: layout.label(text="Goal:") col = layout.column_flow() @@ -208,12 +208,12 @@ class PHYSICS_PT_cloth_stiffness(PhysicButtonsPanel, bpy.types.Panel): col = split.column() col.label(text="Structural Stiffness:") - col.prop_search(cloth, "structural_stiffness_vertex_group", ob, "vertex_groups", text="") + col.prop_search(cloth, "vertex_group_structural_stiffness", ob, "vertex_groups", text="") col.prop(cloth, "structural_stiffness_max", text="Max") col = split.column() col.label(text="Bending Stiffness:") - col.prop_search(cloth, "bending_vertex_group", ob, "vertex_groups", text="") + col.prop_search(cloth, "vertex_group_bending", ob, "vertex_groups", text="") col.prop(cloth, "bending_stiffness_max", text="Max") diff --git a/release/scripts/ui/properties_physics_softbody.py b/release/scripts/ui/properties_physics_softbody.py index 2411f460f4b..b9c4c87c78d 100644 --- a/release/scripts/ui/properties_physics_softbody.py +++ b/release/scripts/ui/properties_physics_softbody.py @@ -77,7 +77,7 @@ class PHYSICS_PT_softbody(PhysicButtonsPanel, bpy.types.Panel): col.label(text="Object:") col.prop(softbody, "friction") col.prop(softbody, "mass") - col.prop_search(softbody, "mass_vertex_group", ob, "vertex_groups", text="Mass:") + col.prop_search(softbody, "vertex_group_mass", ob, "vertex_groups", text="Mass:") col = split.column() col.label(text="Simulation:") @@ -137,7 +137,7 @@ class PHYSICS_PT_softbody_goal(PhysicButtonsPanel, bpy.types.Panel): col.prop(softbody, "goal_spring", text="Stiffness") col.prop(softbody, "goal_friction", text="Damping") - layout.prop_search(softbody, "goal_vertex_group", ob, "vertex_groups", text="Vertex Group") + layout.prop_search(softbody, "vertex_group_goal", ob, "vertex_groups", text="Vertex Group") class PHYSICS_PT_softbody_edge(PhysicButtonsPanel, bpy.types.Panel): @@ -173,7 +173,7 @@ class PHYSICS_PT_softbody_edge(PhysicButtonsPanel, bpy.types.Panel): col.prop(softbody, "plastic") col.prop(softbody, "bend") col.prop(softbody, "spring_length", text="Length") - col.prop_search(softbody, "spring_vertex_group", ob, "vertex_groups", text="Springs:") + col.prop_search(softbody, "vertex_group_spring", ob, "vertex_groups", text="Springs:") col = split.column() col.prop(softbody, "use_stiff_quads") |