Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-07-26 15:57:27 +0400
committerJoshua Leung <aligorith@gmail.com>2009-07-26 15:57:27 +0400
commit4e024a1e6e41640d2f70624bb15778dc6a6c6695 (patch)
tree19c0d3a42dd78d9a6c38cb54e4f3ac0adc8be8d2 /release
parent812530aca81385af5a34fab851b4031521a1abe0 (diff)
2.5 - 'Reset' buttons for Limit Distance and Stretch To Constraints
Diffstat (limited to 'release')
-rw-r--r--release/ui/buttons_data_armature.py4
-rw-r--r--release/ui/buttons_object_constraint.py15
2 files changed, 13 insertions, 6 deletions
diff --git a/release/ui/buttons_data_armature.py b/release/ui/buttons_data_armature.py
index b2c135e4a9b..51113226dac 100644
--- a/release/ui/buttons_data_armature.py
+++ b/release/ui/buttons_data_armature.py
@@ -96,20 +96,24 @@ class DATA_PT_bone_groups(DataButtonsPanel):
row.template_list(pose, "bone_groups", pose, "active_bone_group_index")
col = row.column(align=True)
+ col.active = (ob.proxy == None)
col.itemO("pose.group_add", icon="ICON_ZOOMIN", text="")
col.itemO("pose.group_remove", icon="ICON_ZOOMOUT", text="")
group = pose.active_bone_group
if group:
col = layout.column()
+ col.active= (ob.proxy == None)
col.itemR(group, "name")
split = layout.split(0.5)
+ split.active= (ob.proxy == None)
split.itemR(group, "color_set")
if group.color_set:
split.template_triColorSet(group, "colors")
row = layout.row(align=True)
+ row.active= (ob.proxy == None)
row.itemO("pose.group_assign", text="Assign")
row.itemO("pose.group_remove", text="Remove") #row.itemO("pose.bone_group_remove_from", text="Remove")
diff --git a/release/ui/buttons_object_constraint.py b/release/ui/buttons_object_constraint.py
index 8d531df9e19..1766513a952 100644
--- a/release/ui/buttons_object_constraint.py
+++ b/release/ui/buttons_object_constraint.py
@@ -379,26 +379,29 @@ class ConstraintButtonsPanel(bpy.types.Panel):
def limit_distance(self, layout, con):
self.target_template(layout, con)
- layout.itemR(con, "distance")
+ col = layout.column(align=True);
+ col.itemR(con, "distance")
+ col.itemO("constraint.limitdistance_reset")
row = layout.row()
row.itemL(text="Clamp Region:")
row.itemR(con, "limit_mode", text="")
- #Missing: Recalculate Button
def stretch_to(self, layout, con):
self.target_template(layout, con)
- row = layout.row()
- row.itemR(con, "original_length", text="Rest Length")
- row.itemR(con, "bulge", text="Volume Variation")
+ col = layout.column(align=True)
+ col.itemR(con, "original_length", text="Rest Length")
+ col.itemO("constraint.stretchto_reset")
+
+ col = layout.column()
+ col.itemR(con, "bulge", text="Volume Variation")
row = layout.row()
row.itemL(text="Volume:")
row.itemR(con, "volume", expand=True)
row.itemL(text="Plane:")
row.itemR(con, "keep_axis", expand=True)
- #Missing: Recalculate Button
def floor(self, layout, con):
self.target_template(layout, con)