diff --git a/code/STLLoader.cpp b/code/STLLoader.cpp index c615561a8..c7144e444 100644 --- a/code/STLLoader.cpp +++ b/code/STLLoader.cpp @@ -278,6 +278,7 @@ void STLImporter::LoadASCIIFile( aiNode *root ) { } std::string name( szMe, temp ); node->mName.Set( name.c_str() ); + pMesh->mName.Set( name.c_str() ); //pScene->mRootNode->mName.length = temp; //memcpy(pScene->mRootNode->mName.data,szMe,temp); //pScene->mRootNode->mName.data[temp] = '\0';