Baked Animation re-Import fix

This commit is contained in:
2011-08-10 17:51:18 +00:00
parent fafe6e3540
commit 11d4cfaa71

View File

@@ -667,7 +667,7 @@ void AnimationImporter:: Assign_transform_animations(COLLADAFW::Transformation *
COLLADABU::Math::Matrix4 mat4 = mat->getMatrix();
switch (binding->animationClass) {
case COLLADAFW::AnimationList::TRANSFORM:
}
}*/
case COLLADAFW::Transformation::SKEW:
@@ -815,9 +815,10 @@ void AnimationImporter::translate_Animations_NEW ( COLLADAFW::Node * node ,
//Add the curves of the current animation to the object
for (iter = animcurves.begin(); iter != animcurves.end(); iter++) {
FCurve * fcu = *iter;
if (ob->type == OB_ARMATURE)
if ((ob->type == OB_ARMATURE)){
if ( !is_matrix)
add_bone_fcurve( ob, node , fcu );
else
} else
BLI_addtail(AnimCurves, fcu);
}
}