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:
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_object_constraint.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_object_constraint.py21
1 files changed, 18 insertions, 3 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..5f79dd3127a 100644
--- a/release/scripts/startup/bl_ui/properties_object_constraint.py
+++ b/release/scripts/startup/bl_ui/properties_object_constraint.py
@@ -651,6 +651,24 @@ class ConstraintButtonsPanel():
sub.prop(con, "from_min_z", text="Min")
sub.prop(con, "from_max_z", text="Max")
+ col = layout.column()
+ row = col.row()
+ row.label(text="Source to Destination Mapping:")
+
+ # note: chr(187) is the ASCII arrow ( >> ). Blender Text Editor can't
+ # open it. Thus we are using the hardcoded value instead.
+ row = col.row()
+ row.prop(con, "map_to_x_from", expand=False, text="")
+ row.label(text=" %s X" % chr(187))
+
+ row = col.row()
+ row.prop(con, "map_to_y_from", expand=False, text="")
+ row.label(text=" %s Y" % chr(187))
+
+ row = col.row()
+ row.prop(con, "map_to_z_from", expand=False, text="")
+ row.label(text=" %s Z" % chr(187))
+
split = layout.split()
col = split.column()
@@ -661,7 +679,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 +686,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 +693,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")