[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11274] trunk/blender/source/blender/src/ buttons_object.c: == TrackTo Constraint ==

Joshua Leung aligorith at gmail.com
Sun Jul 15 06:31:47 CEST 2007


Revision: 11274
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11274
Author:   aligorith
Date:     2007-07-15 06:31:47 +0200 (Sun, 15 Jul 2007)

Log Message:
-----------
== TrackTo Constraint ==

Now this constraint has the space-conversion buttons too (by special request of joeedh).

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	2007-07-15 03:35:37 UTC (rev 11273)
+++ trunk/blender/source/blender/src/buttons_object.c	2007-07-15 04:31:47 UTC (rev 11274)
@@ -1001,8 +1001,8 @@
 		case CONSTRAINT_TYPE_TRACKTO:
 			{
 				bTrackToConstraint *data = con->data;
-
-				height = 66;
+				
+				height = 96;
 				uiDefBut(block, ROUNDBOX, B_DIFF, "", *xco-10, *yco-height, width+40,height-1, NULL, 5.0, 0.0, 12, rb_col, ""); 
 				
 				uiDefBut(block, LABEL, B_CONSTRAINT_TEST, "Target:", *xco+65, *yco-24, 50, 18, NULL, 0.0, 0.0, 0.0, 0.0, ""); 
@@ -1020,10 +1020,10 @@
 				}
 				
 				uiBlockEndAlign(block);
-
+				
 				uiBlockBeginAlign(block);
 				uiDefBut(block, LABEL, B_CONSTRAINT_TEST, "Align:", *xco+5, *yco-42, 50, 18, NULL, 0.0, 0.0, 0.0, 0.0, "");
-
+				
 				uiDefButBitI(block, TOG, 1, B_CONSTRAINT_TEST, "TargetZ", *xco+60, *yco-42, 50, 18, &data->flags, 0, 1, 0, 0, "Target Z axis, not world Z axis, will constrain up direction");
 				uiBlockEndAlign(block);
 
@@ -1045,6 +1045,9 @@
 				uiDefButI(block, ROW,B_CONSTRAINT_TEST,"Y",	*xco+221, *yco-64,17,18, &data->reserved2, 13.0, 1.0, 0, 0, "Y axis points upward");
 				uiDefButI(block, ROW,B_CONSTRAINT_TEST,"Z",	*xco+238, *yco-64,17,18, &data->reserved2, 13.0, 2.0, 0, 0, "Z axis points upward");
 				uiBlockEndAlign(block);
+				
+				/* constraint space settings */
+				draw_constraint_spaceselect(block, con, *xco, *yco-94, is_armature_owner, is_armature_target);
 			}
 			break;
 		case CONSTRAINT_TYPE_MINMAX:





More information about the Bf-blender-cvs mailing list