diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-05-11 16:17:52 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-05-11 16:17:52 +0400 |
commit | cfc767d98153f22194ea42ddda78d206abe5316e (patch) | |
tree | f7d0cf245013948a7c7c971edbeff26cfede0fed /source/blender/src/editarmature.c | |
parent | 1decc569dd938ecb75fde10dcbb4673ee017f668 (diff) |
Bugfix:
Found a little bug in the Armature Joining code due to the 'imat' var being defined twice and used for two different things. This was brought to light by Valgrind output (thanks Campbell)
Diffstat (limited to 'source/blender/src/editarmature.c')
-rw-r--r-- | source/blender/src/editarmature.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/src/editarmature.c b/source/blender/src/editarmature.c index 14c81ef1bf5..7bb0dc7d347 100644 --- a/source/blender/src/editarmature.c +++ b/source/blender/src/editarmature.c @@ -549,7 +549,7 @@ int join_armature(void) bPoseChannel *pchan, *pchann; ListBase ebbase, eblist; EditBone *curbone; - float mat[4][4], imat[4][4]; + float mat[4][4], oimat[4][4]; /* Ensure we're not in editmode and that the active object is an armature*/ /* if(G.obedit) return; */ /* Alredy checked in join_menu() */ @@ -579,8 +579,8 @@ int join_armature(void) opose= base->object->pose; /* Find the difference matrix */ - Mat4Invert(imat, ob->obmat); - Mat4MulMat4(mat, base->object->obmat, imat); + Mat4Invert(oimat, ob->obmat); + Mat4MulMat4(mat, base->object->obmat, oimat); /* Copy bones and posechannels from the object to the edit armature */ for (pchan=opose->chanbase.first; pchan; pchan=pchann) { @@ -826,8 +826,8 @@ void separate_armature (void) // 31 Mar 08 \ 11 May 08 - Aligorith: // currently, this is still too unstable to be enabled for general consumption. // remove the following two lines to test this tool... you have been warned! - okee("Not implemented (WIP)"); - return; + // okee("Not implemented (WIP)"); + // return; if ( G.vd==0 || (G.vd->lay & G.obedit->lay)==0 ) return; if ( okee("Separate")==0 ) return; |