+ Support to write out mesh name

This commit is contained in:
wmayer
2013-12-22 15:02:40 +01:00
parent 970f9c193d
commit 58b1a0947f
6 changed files with 21 additions and 8 deletions

View File

@@ -303,9 +303,12 @@ void MeshObject::RestoreDocFile(Base::Reader &reader)
}
void MeshObject::save(const char* file, MeshCore::MeshIO::Format f,
const MeshCore::Material* mat) const
const MeshCore::Material* mat,
const char* objectname) const
{
MeshCore::MeshOutput aWriter(this->_kernel, mat);
if (objectname)
aWriter.SetObjectName(objectname);
aWriter.Transform(this->_Mtrx);
aWriter.SaveAny(file, f);
}