mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fixes a mistake with setting the looseFilePath for the auto-created terrain asset.
This commit is contained in:
parent
4ce558f042
commit
41277fe3b8
1 changed files with 3 additions and 3 deletions
|
|
@ -253,7 +253,7 @@ bool TerrainAsset::getAssetByFilename(StringTableEntry fileName, AssetPtr<Terrai
|
|||
|
||||
TerrainAsset* newTerrainAsset = new TerrainAsset();
|
||||
newTerrainAsset->setAssetName(terrFilePath.getFileName().c_str());
|
||||
String terrainPathBind = String("@=") + terrFilePath.getFileName() + terrFilePath.getExtension();
|
||||
String terrainPathBind = terrFilePath.getFileName() + terrFilePath.getExtension();
|
||||
|
||||
newTerrainAsset->mTerrainFilePath = StringTable->insert(terrainPathBind.c_str());
|
||||
|
||||
|
|
@ -340,7 +340,7 @@ StringTableEntry TerrainAsset::getAssetIdByFilename(StringTableEntry fileName)
|
|||
|
||||
TerrainAsset* newTerrainAsset = new TerrainAsset();
|
||||
newTerrainAsset->setAssetName(terrFilePath.getFileName().c_str());
|
||||
String terrainPathBind = String("@=") + terrFilePath.getFileName() + terrFilePath.getExtension();
|
||||
String terrainPathBind = terrFilePath.getFileName() + "." + terrFilePath.getExtension();
|
||||
|
||||
newTerrainAsset->mTerrainFilePath = StringTable->insert(terrainPathBind.c_str());
|
||||
|
||||
|
|
@ -354,7 +354,7 @@ StringTableEntry TerrainAsset::getAssetIdByFilename(StringTableEntry fileName)
|
|||
// Turn-off auto-formatting.
|
||||
taml.setAutoFormat(false);
|
||||
|
||||
String tamlPath = terrFilePath.getFullPath() + "/" + terrFilePath.getFileName() + ".asset.taml";
|
||||
String tamlPath = terrFilePath.getPath() + "/" + terrFilePath.getFileName() + ".asset.taml";
|
||||
|
||||
// Read object.
|
||||
bool success = taml.write(newTerrainAsset, tamlPath.c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue