diff options
author | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-07-27 20:29:28 +0400 |
---|---|---|
committer | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-07-27 20:29:28 +0400 |
commit | 5fc54a7ccc47b865f77c667d45d4f3c7aab16eaf (patch) | |
tree | 724fa1f296b4bd5d03950c1158cda45db4730341 /source/blender | |
parent | 40e36975efb8b7317fa759bacd8125e9348bd869 (diff) |
Material Effect Specular color animation Export.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/collada/AnimationExporter.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/collada/AnimationExporter.cpp b/source/blender/collada/AnimationExporter.cpp index 0e6fa4d0d92..640a4b36384 100644 --- a/source/blender/collada/AnimationExporter.cpp +++ b/source/blender/collada/AnimationExporter.cpp @@ -111,7 +111,7 @@ void AnimationExporter::exportAnimations(Scene *sce) while (fcu) { transformName = extract_transform_name( fcu->rna_path ); - if ((!strcmp(transformName, "specular_hardness"))) + if ((!strcmp(transformName, "specular_hardness"))||(!strcmp(transformName, "specular_color"))) dae_animation(ob ,fcu, transformName, true, ma ); fcu = fcu->next; } @@ -204,7 +204,7 @@ 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") ) + else if ( !strcmp(transformName, "color")||!strcmp(transformName, "specular_color") ) { const char *axis_names[] = {"R", "G", "B"}; if (fcu->array_index < 3) @@ -840,6 +840,8 @@ void AnimationExporter::exportAnimations(Scene *sce) tm_type = 10; else if (!strcmp(name, "specular_hardness")) tm_type = 11; + else if (!strcmp(name, "specular_color")) + tm_type = 12; else tm_type = -1; @@ -881,6 +883,10 @@ void AnimationExporter::exportAnimations(Scene *sce) case 11: tm_name = "shininess"; break; + case 12: + tm_name = "specular"; + break; + default: tm_name = ""; break; |