[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39754] branches/soc-2011-pepper/source/ blender/collada/AnimationExporter.cpp: armature object animation bug fix.
Sukhitha Jayathilake
pr.jayathilake at gmail.com
Sun Aug 28 20:30:19 CEST 2011
Revision: 39754
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39754
Author: phabtar
Date: 2011-08-28 18:30:18 +0000 (Sun, 28 Aug 2011)
Log Message:
-----------
armature object animation bug fix.
Modified Paths:
--------------
branches/soc-2011-pepper/source/blender/collada/AnimationExporter.cpp
Modified: branches/soc-2011-pepper/source/blender/collada/AnimationExporter.cpp
===================================================================
--- branches/soc-2011-pepper/source/blender/collada/AnimationExporter.cpp 2011-08-28 17:15:24 UTC (rev 39753)
+++ branches/soc-2011-pepper/source/blender/collada/AnimationExporter.cpp 2011-08-28 18:30:18 UTC (rev 39754)
@@ -71,14 +71,15 @@
bArmature *arm = (bArmature*)ob->data;
for (Bone *bone = (Bone*)arm->bonebase.first; bone; bone = bone->next)
write_bone_animation_matrix(ob, bone);
-
- transformName = fcu->rna_path;
}
- else
- transformName = extract_transform_name( fcu->rna_path );
while (fcu) {
- transformName = extract_transform_name( fcu->rna_path );
+ //for armature animations as objects
+ if ( ob->type == OB_ARMATURE )
+ transformName = fcu->rna_path;
+ else
+ transformName = extract_transform_name( fcu->rna_path );
+
if ((!strcmp(transformName, "location") || !strcmp(transformName, "scale")) ||
(!strcmp(transformName, "rotation_euler") && ob->rotmode == ROT_MODE_EUL)||
(!strcmp(transformName, "rotation_quaternion")))
More information about the Bf-blender-cvs
mailing list