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:
authorThomas Dinges <blender@dingto.org>2010-11-20 12:48:51 +0300
committerThomas Dinges <blender@dingto.org>2010-11-20 12:48:51 +0300
commit6aea182b1e174a78443672596bc6dcd35cad413a (patch)
tree8d3aa3f4af908b4b4c3df8183c6812a5b1c606ab /release
parent78cd971bace2b0ead5e2f879a5d60924b2a42ff1 (diff)
Bugfix for [#24768] 6DoF Constraint options missing.
* Added the options in UI and RNA Funny Note: This was on my own to-do list (see commit 20577 in the py file from 2009-06-02 when I ported the UI from C to Python) :P
Diffstat (limited to 'release')
-rw-r--r--release/scripts/ui/properties_object_constraint.py32
1 files changed, 31 insertions, 1 deletions
diff --git a/release/scripts/ui/properties_object_constraint.py b/release/scripts/ui/properties_object_constraint.py
index a2e886adc11..4db846fc2fe 100644
--- a/release/scripts/ui/properties_object_constraint.py
+++ b/release/scripts/ui/properties_object_constraint.py
@@ -550,9 +550,39 @@ class ConstraintButtonsPanel():
col.prop(con, "axis_x", text="X")
col.prop(con, "axis_y", text="Y")
col.prop(con, "axis_z", text="Z")
+
- #Missing: Limit arrays (not wrapped in RNA yet)
+ if con.pivot_type == 'CONE_TWIST':
+ layout.label(text="Limits:")
+ split = layout.split()
+
+ col = split.column(align=True)
+ col.prop(con, "use_angular_limit_x", text="Angular X")
+ col.prop(con, "use_angular_limit_y", text="Angular Y")
+ col.prop(con, "use_angular_limit_z", text="Angular Z")
+
+ col = split.column()
+ col.prop(con, "limit_cone_min", text="")
+ col = split.column()
+ col.prop(con, "limit_cone_max", text="")
+ elif con.pivot_type == 'GENERIC_6_DOF':
+ layout.label(text="Limits:")
+ split = layout.split()
+
+ col = split.column(align=True)
+ col.prop(con, "use_limit_x", text="X")
+ col.prop(con, "use_limit_y", text="Y")
+ col.prop(con, "use_limit_z", text="Z")
+ col.prop(con, "use_angular_limit_x", text="Angular X")
+ col.prop(con, "use_angular_limit_y", text="Angular Y")
+ col.prop(con, "use_angular_limit_z", text="Angular Z")
+
+ col = split.column()
+ col.prop(con, "limit_generic_min", text="")
+ col = split.column()
+ col.prop(con, "limit_generic_max", text="")
+
def CLAMP_TO(self, context, layout, con):
self.target_template(layout, con)