Browse Source

closes https://github.com/assimp/assimp/issues/1351: use correct name for obj-meshname export for groups.

Kim Kulling 7 năm trước cách đây
mục cha
commit
02b042d78e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      code/ObjExporter.cpp

+ 1 - 1
code/ObjExporter.cpp

@@ -383,7 +383,7 @@ void ObjExporter::AddMesh(const aiString& name, const aiMesh* m, const aiMatrix4
     mMeshes.push_back(MeshInstance());
     mMeshes.push_back(MeshInstance());
     MeshInstance& mesh = mMeshes.back();
     MeshInstance& mesh = mMeshes.back();
 
 
-    mesh.name = std::string(name.data,name.length) + (m->mName.length ? "_" + std::string(m->mName.data,m->mName.length) : "");
+    mesh.name = std::string( name.data, name.length );
     mesh.matname = GetMaterialName(m->mMaterialIndex);
     mesh.matname = GetMaterialName(m->mMaterialIndex);
 
 
     mesh.faces.resize(m->mNumFaces);
     mesh.faces.resize(m->mNumFaces);