From 4e5bba5dd830f895dc9e9ad60118f45199491298 Mon Sep 17 00:00:00 2001 From: Luca Della Vedova Date: Wed, 13 Dec 2023 10:27:36 +0800 Subject: [PATCH] Use scene name for material name Signed-off-by: Luca Della Vedova --- graphics/src/AssimpLoader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/src/AssimpLoader.cc b/graphics/src/AssimpLoader.cc index 183880a5..c5d01928 100644 --- a/graphics/src/AssimpLoader.cc +++ b/graphics/src/AssimpLoader.cc @@ -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; }