Material Effect Specular color animation Export.

This commit is contained in:
Sukhitha Prabhath Jayathilake 2011-07-27 16:29:28 +00:00
parent 40e36975ef
commit 5fc54a7ccc

@ -111,7 +111,7 @@ void AnimationExporter::exportAnimations(Scene *sce)
while (fcu) { while (fcu) {
transformName = extract_transform_name( fcu->rna_path ); 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 ); dae_animation(ob ,fcu, transformName, true, ma );
fcu = fcu->next; fcu = fcu->next;
} }
@ -204,7 +204,7 @@ void AnimationExporter::exportAnimations(Scene *sce)
axis_name = axis_names[fcu->array_index];*/ axis_name = axis_names[fcu->array_index];*/
} }
//maybe a list or a vector of float animations //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"}; const char *axis_names[] = {"R", "G", "B"};
if (fcu->array_index < 3) if (fcu->array_index < 3)
@ -840,6 +840,8 @@ void AnimationExporter::exportAnimations(Scene *sce)
tm_type = 10; tm_type = 10;
else if (!strcmp(name, "specular_hardness")) else if (!strcmp(name, "specular_hardness"))
tm_type = 11; tm_type = 11;
else if (!strcmp(name, "specular_color"))
tm_type = 12;
else else
tm_type = -1; tm_type = -1;
@ -881,6 +883,10 @@ void AnimationExporter::exportAnimations(Scene *sce)
case 11: case 11:
tm_name = "shininess"; tm_name = "shininess";
break; break;
case 12:
tm_name = "specular";
break;
default: default:
tm_name = ""; tm_name = "";
break; break;