Used node name instead of mesh name
This commit is contained in:
parent
48c3ed823b
commit
4bfb3ef843
|
@ -28,6 +28,7 @@ namespace SH_COMP
|
||||||
aiMesh* mesh = scene.mMeshes[node.mMeshes[i]];
|
aiMesh* mesh = scene.mMeshes[node.mMeshes[i]];
|
||||||
meshes.emplace_back();
|
meshes.emplace_back();
|
||||||
GetMesh(*mesh, meshes.back());
|
GetMesh(*mesh, meshes.back());
|
||||||
|
meshes.back().name = node.mName.C_Str();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t i{ 0 }; i < node.mNumChildren; ++i)
|
for (size_t i{ 0 }; i < node.mNumChildren; ++i)
|
||||||
|
@ -111,8 +112,6 @@ namespace SH_COMP
|
||||||
meshData.indices.push_back(face.mIndices[j]);
|
meshData.indices.push_back(face.mIndices[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
meshData.name = mesh.mName.C_Str();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MeshCompiler::BuildHeaders(MeshAsset& asset) noexcept
|
void MeshCompiler::BuildHeaders(MeshAsset& asset) noexcept
|
||||||
|
|
Loading…
Reference in New Issue