Merge pull request #2472 from ucla-pbpl/set_stl_mesh_names
Add mesh names to imported ASCII STLpull/2482/head^2
commit
ca13160369
|
@ -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';
|
||||||
|
|
Loading…
Reference in New Issue