diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-12-05 14:19:36 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-12-05 14:19:36 +0300 |
commit | 5c13e8214062515779cde61fb57d4a8e29cd0c57 (patch) | |
tree | 0f3d795f269bc87146fcdb28d406b4a88985ea2a /source/blender/include | |
parent | 8493fa986bfd01c4d7e98d8afbccbfec44f78d5b (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/include')
-rw-r--r-- | source/blender/include/transform.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/include/transform.h b/source/blender/include/transform.h index 623514a1a32..52eb3edf19f 100644 --- a/source/blender/include/transform.h +++ b/source/blender/include/transform.h @@ -45,6 +45,7 @@ struct Object; struct View3D; struct ScrArea; struct bPose; +struct bConstraint; typedef struct NumInput { @@ -142,6 +143,7 @@ typedef struct TransData { float smtx[3][3]; /* Transformation matrix from global space to data space */ float axismtx[3][3];/* Axis orientation matrix of the data */ struct Object *ob; + struct bConstraint *con; /* for objects/bones, the first constraint in its constraint stack */ TransDataExtension *ext; /* for objects, poses. 1 single malloc per TransInfo! */ TransDataIpokey *tdi; /* for objects, ipo keys. per transdata a malloc */ void *tdmir; /* mirrored element pointer, in editmode mesh to EditVert */ |