for obj export only create mtl file if color is per face
This commit is contained in:
parent
75681ed0a5
commit
1c4052bde9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user