mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
clarify input value for the makeTerrainMapsFrom and getImageFileName utility commands
it uses the "module:name" of the image. not the simid number
This commit is contained in:
parent
12db0500e8
commit
258237889f
1 changed files with 4 additions and 4 deletions
|
|
@ -784,13 +784,13 @@ function getNumCanCallOnObjectList(%functionName, %objectsList)
|
||||||
return %numberWithFunction;
|
return %numberWithFunction;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getImageFileName(%id)
|
function getImageFileName(%assetName)
|
||||||
{
|
{
|
||||||
%assetDef = AssetDatabase.acquireAsset(%id);
|
%assetDef = AssetDatabase.acquireAsset(%assetName);
|
||||||
return %assetDef.getImagePath();
|
return %assetDef.getImagePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeTerrainMapsFrom(%id)
|
function makeTerrainMapsFrom(%assetName)
|
||||||
{
|
{
|
||||||
splitTerrainMaps(getImageFileName(%id));
|
splitTerrainMaps(getImageFileName(%assetName));
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue