Skip to content

Commit

Permalink
for obj export only create mtl file if color is per face
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 21, 2016
1 parent 75681ed commit 1c4052b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Mesh/App/Mesh.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 1c4052b

Please sign in to comment.