Merge pull request #2472 from ucla-pbpl/set_stl_mesh_names

Add mesh names to imported ASCII STL
This commit is contained in:
Kim Kulling
2019-05-26 08:53:20 +02:00
committed by GitHub

View File

@@ -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';