diff options
author | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-07-28 22:25:23 +0400 |
---|---|---|
committer | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-07-28 22:25:23 +0400 |
commit | f9ef37059d70f28fe6c962a481ccb95363a4d17e (patch) | |
tree | 44e7875e304ec35f823b8bb944b1caf9f8d70c96 /source/blender/collada/AnimationExporter.cpp | |
parent | eb7b1f0c58fcf239f353f1cb967882a536f50737 (diff) |
Material transparency animation COLLADA 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 4c07b8c8b03..ab2bf591321 100644 --- a/source/blender/collada/AnimationExporter.cpp +++ b/source/blender/collada/AnimationExporter.cpp @@ -112,7 +112,7 @@ void AnimationExporter::exportAnimations(Scene *sce) transformName = extract_transform_name( fcu->rna_path ); if ((!strcmp(transformName, "specular_hardness"))||(!strcmp(transformName, "specular_color")) - ||(!strcmp(transformName, "diffuse_color"))) + ||(!strcmp(transformName, "diffuse_color"))||(!strcmp(transformName, "alpha"))) dae_animation(ob ,fcu, transformName, true, ma ); fcu = fcu->next; } @@ -205,7 +205,8 @@ void AnimationExporter::exportAnimations(Scene *sce) axis_name = axis_names[fcu->array_index];*/ } //maybe a list or a vector of float animations - else if ( !strcmp(transformName, "color")||!strcmp(transformName, "specular_color")||!strcmp(transformName, "diffuse_color")) + else if ( !strcmp(transformName, "color")||!strcmp(transformName, "specular_color")||!strcmp(transformName, "diffuse_color")|| + (!strcmp(transformName, "alpha"))) { const char *axis_names[] = {"R", "G", "B"}; if (fcu->array_index < 3) @@ -845,6 +846,8 @@ void AnimationExporter::exportAnimations(Scene *sce) tm_type = 12; else if (!strcmp(name, "diffuse_color")) tm_type = 13; + else if (!strcmp(name, "alpha")) + tm_type = 14; else tm_type = -1; @@ -892,6 +895,10 @@ void AnimationExporter::exportAnimations(Scene *sce) case 13: tm_name = "diffuse"; break; + case 14: + tm_name = "transparency"; + break; + default: tm_name = ""; break; |