diff options
author | Thomas Dinges <blender@dingto.org> | 2011-05-20 22:26:44 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2011-05-20 22:26:44 +0400 |
commit | 2aa9c000edd6399d6ccd80e9c268116ba2696a39 (patch) | |
tree | a4eb76b5ede4e9c98da59391f082a26c075b25c4 | |
parent | d16da799fbafedf38ac0ab893d62c514b078589c (diff) |
Fix for [#27333] Translation constraint is broken.
Committing here a patch by Bastien Montagne (mont29), a more understandable Translation Constraint UI.
Before: http://www.pasteall.org/pic/12578
Now http://www.pasteall.org/pic/12258
From the description:
"When you set “X” under the Destination’s “Z”, it does not mean that the Z transform of the source should affect the X transform of the destination, but rather that the X transform of the source should affect the Z transform of the destination…"
The new UI should make it a bit more clear.
-rw-r--r-- | release/scripts/startup/bl_ui/properties_object_constraint.py | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/properties_object_constraint.py b/release/scripts/startup/bl_ui/properties_object_constraint.py index 59f9ca16d1a..2ca18744eb6 100644 --- a/release/scripts/startup/bl_ui/properties_object_constraint.py +++ b/release/scripts/startup/bl_ui/properties_object_constraint.py @@ -651,8 +651,24 @@ class ConstraintButtonsPanel(): sub.prop(con, "from_min_z", text="Min") sub.prop(con, "from_max_z", text="Max") - split = layout.split() + col = layout.column() + row = col.row() + row.label(text="Source to Destination Mapping:") + + row = col.row() + row.prop(con, "map_to_x_from", expand=False, text="") + row.label(text=" -> X") + row = col.row() + row.prop(con, "map_to_y_from", expand=False, text="") + row.label(text=" -> Y") + + row = col.row() + row.prop(con, "map_to_z_from", expand=False, text="") + row.label(text=" -> Z") + + split = layout.split() + col = split.column() col.label(text="Destination:") col.row().prop(con, "map_to", expand=True) @@ -661,7 +677,6 @@ class ConstraintButtonsPanel(): col = split.column() col.label(text="X:") - col.row().prop(con, "map_to_x_from", expand=True) sub = col.column(align=True) sub.prop(con, "to_min_x", text="Min") @@ -669,7 +684,6 @@ class ConstraintButtonsPanel(): col = split.column() col.label(text="Y:") - col.row().prop(con, "map_to_y_from", expand=True) sub = col.column(align=True) sub.prop(con, "to_min_y", text="Min") @@ -677,7 +691,6 @@ class ConstraintButtonsPanel(): col = split.column() col.label(text="Z:") - col.row().prop(con, "map_to_z_from", expand=True) sub = col.column(align=True) sub.prop(con, "to_min_z", text="Min") |