Add mesh names to imported ASCII STL

pull/2472/head
Brian Naranjo 2019-05-17 11:48:57 -07:00
parent 9740c043c6
commit ff4ab7ff2e
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 ); std::string name( szMe, temp );
node->mName.Set( name.c_str() ); node->mName.Set( name.c_str() );
pMesh->mName.Set( name.c_str() );
//pScene->mRootNode->mName.length = temp; //pScene->mRootNode->mName.length = temp;
//memcpy(pScene->mRootNode->mName.data,szMe,temp); //memcpy(pScene->mRootNode->mName.data,szMe,temp);
//pScene->mRootNode->mName.data[temp] = '\0'; //pScene->mRootNode->mName.data[temp] = '\0';