[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36806] trunk/blender/release/scripts/ startup/bl_ui/properties_object_constraint.py: Fix for [#27333] Translation constraint is broken.

Thomas Dinges blender at dingto.org
Fri May 20 20:26:44 CEST 2011


Revision: 36806
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36806
Author:   dingto
Date:     2011-05-20 18:26:44 +0000 (Fri, 20 May 2011)
Log Message:
-----------
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 ?\226?\128?\156X?\226?\128?\157 under the Destination?\226?\128?\153s ?\226?\128?\156Z?\226?\128?\157, 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?\226?\128?\166"

The new UI should make it a bit more clear. 

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/properties_object_constraint.py

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_object_constraint.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_object_constraint.py	2011-05-20 18:19:29 UTC (rev 36805)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_object_constraint.py	2011-05-20 18:26:44 UTC (rev 36806)
@@ -651,8 +651,24 @@
         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:")
+
+        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 @@
 
         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 @@
 
         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 @@
 
         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")




More information about the Bf-blender-cvs mailing list