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-07-29 15:15:37 +0400
committerJoshua Leung <aligorith@gmail.com>2007-07-29 15:15:37 +0400
commit6dcde0b5be6d87981fcdd27c924ec1c9e4965c96 (patch)
treef2bf5eee347605d887c3c83269ef80c49f80f07a /source/blender/src/buttons_object.c
parentddbd9182d41b89f7bec11400a1949759dcfcf3fe (diff)
More Constraints Bugfixes:
* Transform Constraint should now work in more cases. Somehow the old code (for location case) wasn't working correctly. * ChildOf Constraint applied on objects, should now get the right 'inverse'/'offset' matrix set. It now uses the same code that is used by Blender's parenting method to do so.
Diffstat (limited to 'source/blender/src/buttons_object.c')
-rw-r--r--source/blender/src/buttons_object.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/source/blender/src/buttons_object.c b/source/blender/src/buttons_object.c
index d2ca53743f7..db926e6b49c 100644
--- a/source/blender/src/buttons_object.c
+++ b/source/blender/src/buttons_object.c
@@ -478,33 +478,6 @@ void autocomplete_vgroup(char *str, void *arg_v)
}
}
-/* ChildOf Constraint - set inverse */
-static void childof_const_setinv (void *conv, void *unused)
-{
- bChildOfConstraint *data= (bChildOfConstraint *)conv;
- Object *ob= OBACT;
- bPoseChannel *pchan= NULL;
-
- if (ob && ob->pose)
- pchan= get_active_posechannel(ob);
-
- // for now, try using constinv if available
- if (pchan)
- Mat4CpyMat4(data->invmat, pchan->constinv);
- else if (ob)
- Mat4CpyMat4(data->invmat, ob->constinv);
- else
- Mat4One(data->invmat);
-}
-
-/* ChildOf Constraint - clear inverse */
-static void childof_const_clearinv (void *conv, void *unused)
-{
- bChildOfConstraint *data= (bChildOfConstraint *)conv;
-
- Mat4One(data->invmat);
-}
-
/* Helper function for draw constraint - draws constraint space stuff
* This function should not be called if no menus are required
* owner/target: -1 = don't draw menu; 0= not posemode, 1 = posemode