diff options
author | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-07-06 23:00:40 +0400 |
---|---|---|
committer | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-07-06 23:00:40 +0400 |
commit | 44220bba7a8f2f09264ea1e581096d65a00579e4 (patch) | |
tree | e7dd00208cfe0532909b1249f28e7152f695a55c /source/blender/collada/AnimationExporter.cpp | |
parent | a0d4a95ff7979cbdcfe26392d1f8a6ff83f36990 (diff) |
camera ortho_scale (COLLADA xmag ) animation export
Diffstat (limited to 'source/blender/collada/AnimationExporter.cpp')
-rw-r--r-- | source/blender/collada/AnimationExporter.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/source/blender/collada/AnimationExporter.cpp b/source/blender/collada/AnimationExporter.cpp index f480cd2a48e..850f1b334f2 100644 --- a/source/blender/collada/AnimationExporter.cpp +++ b/source/blender/collada/AnimationExporter.cpp @@ -90,7 +90,8 @@ void AnimationExporter::exportAnimations(Scene *sce) while (fcu) { transformName = extract_transform_name( fcu->rna_path ); - if ((!strcmp(transformName, "lens"))) + if ((!strcmp(transformName, "lens"))|| + (!strcmp(transformName, "ortho_scale"))) dae_animation(ob ,fcu, transformName,true ); fcu = fcu->next; } @@ -184,9 +185,8 @@ void AnimationExporter::exportAnimations(Scene *sce) if (fcu->array_index < 4) axis_name = axis_names[fcu->array_index];*/ } - else if ( !strcmp(transformName, "spot_size")|| - !strcmp(transformName, "spot_blend")|| - !strcmp(transformName, "lens")) + else if ( !strcmp(transformName, "spot_size")||!strcmp(transformName, "spot_blend")|| + !strcmp(transformName, "lens")||!strcmp(transformName, "ortho_scale")) { axis_name = ""; } @@ -805,6 +805,8 @@ void AnimationExporter::exportAnimations(Scene *sce) tm_type = 6; else if (!strcmp(name, "lens")) tm_type = 7; + else if (!strcmp(name, "ortho_scale")) + tm_type = 8; else tm_type = -1; } @@ -833,6 +835,9 @@ void AnimationExporter::exportAnimations(Scene *sce) case 7: tm_name = "xfov"; break; + case 8: + tm_name = "xmag"; + break; default: tm_name = ""; |