Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com>2011-07-27 22:38:44 +0400
committerSukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com>2011-07-27 22:38:44 +0400
commit4a32691416a3069e468bee81c862ccb77fce0556 (patch)
tree9a15e54d18e74caaa332b181c178e88d9f7bdcd8 /source/blender/collada/AnimationExporter.cpp
parent41216990dc1e8807661c267a361d4ce02724839f (diff)
Material diffuse color animation COLLADA export.
Diffstat (limited to 'source/blender/collada/AnimationExporter.cpp')
-rw-r--r--source/blender/collada/AnimationExporter.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/collada/AnimationExporter.cpp b/source/blender/collada/AnimationExporter.cpp
index 640a4b36384..a4ff987d9ea 100644
--- a/source/blender/collada/AnimationExporter.cpp
+++ b/source/blender/collada/AnimationExporter.cpp
@@ -111,7 +111,8 @@ void AnimationExporter::exportAnimations(Scene *sce)
while (fcu) {
transformName = extract_transform_name( fcu->rna_path );
- if ((!strcmp(transformName, "specular_hardness"))||(!strcmp(transformName, "specular_color")))
+ if ((!strcmp(transformName, "specular_hardness"))||(!strcmp(transformName, "specular_color"))
+ ||(!strcmp(transformName, "diffuse")))
dae_animation(ob ,fcu, transformName, true, ma );
fcu = fcu->next;
}
@@ -204,7 +205,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")||!strcmp(transformName, "specular_color") )
+ else if ( !strcmp(transformName, "color")||!strcmp(transformName, "specular_color")||!strcmp(transformName, "diffuse_color"))
{
const char *axis_names[] = {"R", "G", "B"};
if (fcu->array_index < 3)
@@ -842,6 +843,8 @@ void AnimationExporter::exportAnimations(Scene *sce)
tm_type = 11;
else if (!strcmp(name, "specular_color"))
tm_type = 12;
+ else if (!strcmp(name, "diffuse_color"))
+ tm_type = 13;
else
tm_type = -1;
@@ -886,7 +889,9 @@ void AnimationExporter::exportAnimations(Scene *sce)
case 12:
tm_name = "specular";
break;
-
+ case 13:
+ tm_name = "diffuse";
+ break;
default:
tm_name = "";
break;