mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Merge pull request #229 from Areloch/TerrainAssetFixup
Reworks the terrain loader code to work with the assets.
This commit is contained in:
commit
67dbe4dfe2
15 changed files with 510 additions and 283 deletions
|
|
@ -38,20 +38,11 @@ function AssetBrowser::createTerrainAsset(%this)
|
|||
|
||||
AssetBrowser.refresh();
|
||||
|
||||
//Save out a basic terrain block here
|
||||
/*%terrBlock = new TerrainBlock() { terrainFile = %terPath; };
|
||||
%terrBlock.save(%terPath);
|
||||
%terrBlock.delete();*/
|
||||
|
||||
//the terrain block creation is...weird and does coded path stuff engine-side.
|
||||
//this needs reworking, but this is a sidestep for now
|
||||
%misFile = $Client::MissionFile;
|
||||
$Client::MissionFile = %terPath;
|
||||
|
||||
//
|
||||
$createdTerrainBlock = TerrainBlock::createNew( %assetName, %this.newAssetSettings.resolution, "", %this.newAssetSettings.genWithNoise );
|
||||
|
||||
$Client::MissionFile = %misFile;
|
||||
$createdTerrainBlock.terrainAsset = %moduleName @ ":" @ %assetName;
|
||||
$createdTerrainBlock.terrainFile = "";
|
||||
|
||||
return %tamlpath;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue