COLLADA Armature bake animation export fixed( needs more testing )
authorSukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com>
Sun, 7 Aug 2011 19:22:39 +0000 (19:22 +0000)
committerSukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com>
Sun, 7 Aug 2011 19:22:39 +0000 (19:22 +0000)
source/blender/collada/AnimationExporter.cpp

index b1b26fa29150684606cb5c2a7451a8a703c2027a..fc13207dd2e0ba1f5bf2858b1b0752a5bea1018e 100644 (file)
@@ -382,6 +382,10 @@ void AnimationExporter::exportAnimations(Scene *sce)
                        dae_baked_animation(fra ,values, id_name(ob_arm), bone->name );
 
                }
+
+               if (flag & ARM_RESTPOS) 
+                       arm->flag = flag;
+               where_is_pose(scene, ob_arm);
        }
 
        void AnimationExporter::sample_and_write_bone_animation(Object *ob_arm, Bone *bone, int transform_type)
@@ -458,7 +462,7 @@ void AnimationExporter::exportAnimations(Scene *sce)
                        return;
 
                parchan = pchan->parent;
-
+        
                enable_fcurves(ob_arm->adt->action, bone->name);
 
                std::vector<float>::iterator it;