diff options
author | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-07-09 19:15:17 +0400 |
---|---|---|
committer | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-07-09 19:15:17 +0400 |
commit | eb452225cec986e44f049d0cd42e862be13e4126 (patch) | |
tree | d52bbf65a72fb56d6af150223e8dddbf5748bc2b /source/blender/collada/AnimationExporter.cpp | |
parent | 767c7f24dd277fa1d8e97f02fcddb08cd6f25234 (diff) |
Improvements to import system. Ability to include more parameters.
Diffstat (limited to 'source/blender/collada/AnimationExporter.cpp')
-rw-r--r-- | source/blender/collada/AnimationExporter.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/collada/AnimationExporter.cpp b/source/blender/collada/AnimationExporter.cpp index 311ed290c45..2072b1df7a8 100644 --- a/source/blender/collada/AnimationExporter.cpp +++ b/source/blender/collada/AnimationExporter.cpp @@ -92,7 +92,7 @@ void AnimationExporter::exportAnimations(Scene *sce) if ((!strcmp(transformName, "lens"))|| (!strcmp(transformName, "ortho_scale"))|| - (!strcmp(transformName, "clipend"))) + (!strcmp(transformName, "clipend"))||(!strcmp(transformName, "clipsta"))) dae_animation(ob ,fcu, transformName,true ); fcu = fcu->next; } @@ -188,7 +188,8 @@ void AnimationExporter::exportAnimations(Scene *sce) } //maybe a list or a vector of float animations else if ( !strcmp(transformName, "spot_size")||!strcmp(transformName, "spot_blend")|| - !strcmp(transformName, "lens")||!strcmp(transformName, "ortho_scale")||!strcmp(transformName, "clipend")) + !strcmp(transformName, "lens")||!strcmp(transformName, "ortho_scale")||!strcmp(transformName, "clipend")|| + !strcmp(transformName, "clipsta")) { axis_name = ""; } @@ -811,6 +812,9 @@ void AnimationExporter::exportAnimations(Scene *sce) tm_type = 8; else if (!strcmp(name, "clipend")) tm_type = 9; + else if (!strcmp(name, "clipsta")) + tm_type = 10; + else tm_type = -1; } @@ -845,7 +849,11 @@ void AnimationExporter::exportAnimations(Scene *sce) case 9: tm_name = "zfar"; break; + case 10: + tm_name = "znear"; + break; + default: tm_name = ""; break; |