diff options
author | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-07-07 22:40:46 +0400 |
---|---|---|
committer | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-07-07 22:40:46 +0400 |
commit | 6f5b5ac3c921216306972d24fab1a778c561571a (patch) | |
tree | 09456cb2b654836555027a19b157c8215db2518b /source/blender/collada/AnimationExporter.cpp | |
parent | be918954bd71ed801652039c6f4a0c98094bdc77 (diff) |
Camera clipend animation export
Diffstat (limited to 'source/blender/collada/AnimationExporter.cpp')
-rw-r--r-- | source/blender/collada/AnimationExporter.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/collada/AnimationExporter.cpp b/source/blender/collada/AnimationExporter.cpp index 850f1b334f2..311ed290c45 100644 --- a/source/blender/collada/AnimationExporter.cpp +++ b/source/blender/collada/AnimationExporter.cpp @@ -91,7 +91,8 @@ void AnimationExporter::exportAnimations(Scene *sce) transformName = extract_transform_name( fcu->rna_path ); if ((!strcmp(transformName, "lens"))|| - (!strcmp(transformName, "ortho_scale"))) + (!strcmp(transformName, "ortho_scale"))|| + (!strcmp(transformName, "clipend"))) dae_animation(ob ,fcu, transformName,true ); fcu = fcu->next; } @@ -185,8 +186,9 @@ void AnimationExporter::exportAnimations(Scene *sce) if (fcu->array_index < 4) axis_name = axis_names[fcu->array_index];*/ } + //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, "lens")||!strcmp(transformName, "ortho_scale")||!strcmp(transformName, "clipend")) { axis_name = ""; } @@ -807,6 +809,8 @@ void AnimationExporter::exportAnimations(Scene *sce) tm_type = 7; else if (!strcmp(name, "ortho_scale")) tm_type = 8; + else if (!strcmp(name, "clipend")) + tm_type = 9; else tm_type = -1; } @@ -838,6 +842,9 @@ void AnimationExporter::exportAnimations(Scene *sce) case 8: tm_name = "xmag"; break; + case 9: + tm_name = "zfar"; + break; default: tm_name = ""; |