forked from bartvdbraak/blender
Material Effect Specular color animation Export.
This commit is contained in:
parent
40e36975ef
commit
5fc54a7ccc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user