diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-07-15 08:31:47 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-07-15 08:31:47 +0400 |
commit | b34f1eeff6caa57177dcdcffe7bdb4f6f17e84df (patch) | |
tree | 22a791214c7b8018f463c8966b57e214cd35f0f3 /source/blender/src/buttons_object.c | |
parent | af55d208f48017872e30faa76a66d777c983106d (diff) |
== TrackTo Constraint ==
Now this constraint has the space-conversion buttons too (by special request of joeedh).
Diffstat (limited to 'source/blender/src/buttons_object.c')
-rw-r--r-- | source/blender/src/buttons_object.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/src/buttons_object.c b/source/blender/src/buttons_object.c index eb9fb72110e..9bbf9ef9518 100644 --- a/source/blender/src/buttons_object.c +++ b/source/blender/src/buttons_object.c @@ -1001,8 +1001,8 @@ static void draw_constraint (uiBlock *block, ListBase *list, bConstraint *con, s 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 @@ static void draw_constraint (uiBlock *block, ListBase *list, bConstraint *con, s } 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 @@ static void draw_constraint (uiBlock *block, ListBase *list, bConstraint *con, s 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: |