Skip to content

Commit

Permalink
Use scene name for material name
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <[email protected]>
  • Loading branch information
luca-della-vedova committed Dec 13, 2023
1 parent 8816a65 commit 4e5bba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphics/src/AssimpLoader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ ImagePtr AssimpLoader::Implementation::LoadEmbeddedTexture(
std::string AssimpLoader::Implementation::GenerateTextureName(
const aiScene* _scene, aiMaterial* _mat, const std::string& _type) const
{
return ToString(_scene->mRootNode->mName) + "_" + ToString(_mat->GetName()) +
return ToString(_scene->mName) + "_" + ToString(_mat->GetName()) +
"_" + _type;
}

Expand Down

0 comments on commit 4e5bba5

Please sign in to comment.