= Limit Distance Constraint - 'For Transform' Option =
[blender-staging.git] / release / scripts / startup / bl_ui / properties_object_constraint.py
index d182264e3dcb9d9a318f6fee73dfe242c5e74755..900570c9664df1d3782c6aeded2fd28501730797 100644 (file)
@@ -476,6 +476,11 @@ class ConstraintButtonsPanel():
         row.label(text="Clamp Region:")
         row.prop(con, "limit_mode", text="")
 
+        row = layout.row()
+        row.prop(con, "use_transform_limit")
+        row.label()
+
+
     def STRETCH_TO(self, context, layout, con):
         self.target_template(layout, con)
 
@@ -651,8 +656,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 +682,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 +689,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 +696,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")
@@ -779,3 +797,6 @@ class BONE_PT_constraints(ConstraintButtonsPanel, bpy.types.Panel):
 
         for con in context.pose_bone.constraints:
             self.draw_constraint(context, con)
+
+if __name__ == "__main__":  # only for live edit.
+    bpy.utils.register_module(__name__)