mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-28 15:55:39 +00:00
Merge branch 'MiscQOLFixes20210828' of https://github.com/Areloch/Torque3D into Preview4_0
This commit is contained in:
commit
25a32cba2a
26 changed files with 330 additions and 204 deletions
|
|
@ -180,6 +180,12 @@ function ForestEditorGui::pickedNewMeshTargetModule(%this, %module)
|
|||
%moduleDef = ModuleDatabase.findModule(%module);
|
||||
|
||||
ForestEditorGui.forestItemDataPath = %moduleDef.ModulePath @ "/scripts/managedData/managedForestItemData." @ $TorqueScriptFileExtension;
|
||||
|
||||
if(!isDirectory(filePath(ForestEditorGui.forestItemDataPath)))
|
||||
{
|
||||
AssetBrowser.dirHandler.createFolder(filePath(ForestEditorGui.forestItemDataPath));
|
||||
}
|
||||
|
||||
AssetBrowser.showDialog("ShapeAsset", "selectNewForestMesh", "", "", "");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue