for obj export only create mtl file if color is per face

This commit is contained in:
wmayer 2016-09-21 10:05:40 +02:00
parent 75681ed0a5
commit 1c4052bde9

View File

@ -361,7 +361,7 @@ void MeshObject::save(const char* file, MeshCore::MeshIO::Format f,
aWriter.Transform(this->_Mtrx);
if (aWriter.SaveAny(file, f)) {
if (mat && f == MeshCore::MeshIO::OBJ) {
if (mat && mat->binding == MeshCore::MeshIO::PER_FACE && f == MeshCore::MeshIO::OBJ) {
Base::FileInfo fi(file);
std::string fn = fi.dirPath() + "/" + mat->library;
fi.setFile(fn);