Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2007-12-05 14:19:36 +0300
committerJoshua Leung <aligorith@gmail.com>2007-12-05 14:19:36 +0300
commit5c13e8214062515779cde61fb57d4a8e29cd0c57 (patch)
tree0f3d795f269bc87146fcdb28d406b4a88985ea2a /source/blender/src/buttons_object.c
parent8493fa986bfd01c4d7e98d8afbccbfec44f78d5b (diff)
Two transform tweaks:
* [Peach Request] AutoIK now respects axis locking (rotation locks). - Temporary DOF-Locks are turned on for those bones that are part of an AutoIK chain while transforming. These locks get cleared after transforming. - This works for all bones except the root bone of the chain, which doesn't seem to be able to be locked. * Limit Location constraint can now optionally affect Translations too (i.e. NKEY panel values won't change). - LimitRot,LimitScale support (for their respective transforms) will be done at a later date - This only works if the constraint is using World/Local space (the other spaces are not supported yet). - I've added a temporary button in the LimitLoc panel to enable this option (it is disabled by default). This button will be properly assigned a place in that panel sometime.
Diffstat (limited to 'source/blender/src/buttons_object.c')
-rw-r--r--source/blender/src/buttons_object.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/buttons_object.c b/source/blender/src/buttons_object.c
index 6da410be246..2d51064112b 100644
--- a/source/blender/src/buttons_object.c
+++ b/source/blender/src/buttons_object.c
@@ -459,7 +459,6 @@ static void draw_constraint_spaceselect (uiBlock *block, bConstraint *con, short
bwidth = 125;
tarx = 120;
ownx = 0;
-
}
else if (target == -1) {
bwidth = 125;
@@ -1284,6 +1283,9 @@ static void draw_constraint (uiBlock *block, ListBase *list, bConstraint *con, s
uiDefButF(block, NUM, B_CONSTRAINT_TEST, "", *xco+(width-textButWidth-5), *yco-72, (textButWidth-5), 18, &(data->zmax), -1000, 1000, 0.1,0.5,"Highest z value to allow");
uiBlockEndAlign(block);
+ // temp placement!!!
+ uiDefButBitS(block, TOG, LIMIT_TRANSFORM, B_CONSTRAINT_TEST, "Trans", *xco+245, *yco-100, 50, 18, &data->flag2, 0, 24, 0, 0, "Only use during transform");
+
/* constraint space settings */
draw_constraint_spaceselect(block, con, *xco, *yco-100, is_armature_owner(ob), -1);
}