Merge pull request #2472 from ucla-pbpl/set_stl_mesh_names

Add mesh names to imported ASCII STL
pull/2482/head^2
Kim Kulling 2019-05-26 08:53:20 +02:00 committed by GitHub
commit ca13160369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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