[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13695] trunk/blender/source/blender/src/ buttons_object.c: Bugfixes (Constraints UI):

Joshua Leung aligorith at gmail.com
Fri Feb 15 05:58:55 CET 2008


Revision: 13695
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13695
Author:   aligorith
Date:     2008-02-15 05:58:55 +0100 (Fri, 15 Feb 2008)

Log Message:
-----------
Bugfixes (Constraints UI): 

* Transform Constraint UI drew 'VG:' field incorrectly, resulting in bad layout
* StretchTo constraint's UI has been tidied up a bit
* (TODO: MinMax's UI needs URGENT attention)

Modified Paths:
--------------
    trunk/blender/source/blender/src/buttons_object.c

Modified: trunk/blender/source/blender/src/buttons_object.c
===================================================================
--- trunk/blender/source/blender/src/buttons_object.c	2008-02-15 04:42:48 UTC (rev 13694)
+++ trunk/blender/source/blender/src/buttons_object.c	2008-02-15 04:58:55 UTC (rev 13695)
@@ -1275,12 +1275,12 @@
 				
 				uiBlockBeginAlign(block);
 					if (is_armature_target(data->tar)) {
-						uiDefButF(block, BUTM, B_CONSTRAINT_TEST, "R", *xco, *yco-60, 20, 18, &data->orglength, 0.0, 0, 0, 0, "Recalculate RLength");
+						uiDefButF(block, BUT, B_CONSTRAINT_TEST, "R", *xco, *yco-60, 20, 18, &data->orglength, 0.0, 0, 0, 0, "Recalculate RLength");
 						uiDefButF(block, NUM, B_CONSTRAINT_TEST, "Rest Length:", *xco+18, *yco-60,139,18, &data->orglength, 0.0, 100, 0.5, 0.5, "Length at Rest Position");
-						uiDefButF(block, NUM, B_CONSTRAINT_TEST, "Head/Tail:", *xco+155, *yco-60,97,18, &con->headtail, 0.0, 1, 0.1, 0.1, "Target along length of bone: Head=0, Tail=1");
+						uiDefButF(block, NUM, B_CONSTRAINT_TEST, "Head/Tail:", *xco+155, *yco-60,98,18, &con->headtail, 0.0, 1, 0.1, 0.1, "Target along length of bone: Head=0, Tail=1");
 					}
 					else {
-						uiDefButF(block, BUTM, B_CONSTRAINT_TEST, "R", *xco, *yco-60, 20, 18, &data->orglength, 0.0, 0, 0, 0, "Recalculate RLength");
+						uiDefButF(block, BUT, B_CONSTRAINT_TEST, "R", *xco, *yco-60, 20, 18, &data->orglength, 0.0, 0, 0, 0, "Recalculate RLength");
 						uiDefButF(block, NUM, B_CONSTRAINT_TEST, "Rest Length:", *xco+18, *yco-60, 237, 18, &data->orglength, 0.0, 100, 0.5, 0.5, "Length at Rest Position");
 					}
 				uiBlockEndAlign(block);
@@ -1634,7 +1634,7 @@
 						uiButSetCompleteFunc(but, autocomplete_bone, (void *)data->tar);
 					}
 					else if (is_geom_target(data->tar)) {
-						but= uiDefBut(block, TEX, B_CONSTRAINT_CHANGETARGET, "VG:", *xco+120, *yco-66,150,18, &data->subtarget, 0, 24, 0, 0, "Name of Vertex Group defining 'target' points");
+						but= uiDefBut(block, TEX, B_CONSTRAINT_CHANGETARGET, "VG:", *xco+120, *yco-42,135,18, &data->subtarget, 0, 24, 0, 0, "Name of Vertex Group defining 'target' points");
 						uiButSetCompleteFunc(but, autocomplete_vgroup, (void *)data->tar);
 					}
 					else {





More information about the Bf-blender-cvs mailing list