mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
use internalname for terrain layers
stops bugs like spaces in filenames and the like from occuring due to pointing right at the diffuse flat file name, as well as corruption from using a different diffuse in the material later (cherry picked from commit c1227dbdd0dd61c25970eeaac128c6cbe5d25947)
This commit is contained in:
parent
3c30a905c3
commit
1b282e0baf
1 changed files with 1 additions and 2 deletions
|
|
@ -259,8 +259,7 @@ void TerrainFile::_initMaterialInstMapping()
|
|||
|
||||
for( U32 i = 0; i < mMaterials.size(); ++ i )
|
||||
{
|
||||
Torque::Path path( mMaterials[ i ]->getDiffuseMap());
|
||||
mMaterialInstMapping.push_back( path.getFileName() );
|
||||
mMaterialInstMapping.push_back(mMaterials[i]->getInternalName());
|
||||
}
|
||||
|
||||
mMaterialInstMapping.mapMaterials();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue