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-28 22:25:23 +0400
committerSukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com>2011-07-28 22:25:23 +0400
commitf9ef37059d70f28fe6c962a481ccb95363a4d17e (patch)
tree44e7875e304ec35f823b8bb944b1caf9f8d70c96 /source/blender/collada
parenteb7b1f0c58fcf239f353f1cb967882a536f50737 (diff)
Material transparency animation COLLADA export.
Diffstat (limited to 'source/blender/collada')
-rw-r--r--source/blender/collada/AnimationExporter.cpp11
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;