Apply [#27477] COLLADA export support for textures mapped to COLSPEC

Patch provided by Pelle Johnsen
This commit is contained in:
Nathan Letwory 2011-06-08 13:00:25 +00:00
parent 899f2776db
commit 05b54bec3b

@ -273,7 +273,7 @@ void EffectsExporter::operator()(Material *ma, Object *ob)
std::string uvname = strlen(t->uvname) ? t->uvname : active_uv;
// color
if (t->mapto & MAP_COL) {
if (t->mapto & MAP_COL | MAP_COLSPEC) {
ep.setDiffuse(createTexture(ima, uvname, sampler));
}
// ambient