mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Added changes missed via merge failures.
Removed some unused files/references that were causing errors, related to issues #502 & #512
This commit is contained in:
parent
5525f8ecdd
commit
3e131f5b8e
78 changed files with 1812 additions and 1832 deletions
|
|
@ -20,6 +20,8 @@
|
|||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
//--- OBJECT WRITE BEGIN ---
|
||||
%forestBrushesGroup = new SimGroup( ForestBrushGroup )
|
||||
{
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
|
@ -171,13 +171,15 @@ function ForestEditorGui::deleteBrushOrElement( %this )
|
|||
|
||||
function ForestEditorGui::newMesh( %this )
|
||||
{
|
||||
SelectAssetPath.showDialog(AssetBrowser.dirHandler.currentAddress, "createNewForestMesh", "Select Forest Mesh Datablock Path");
|
||||
SelectAssetPathWindow.selectWindow();
|
||||
AssetBrowser_SelectModule.showDialog("ForestEditorGui.pickedNewMeshTargetModule");
|
||||
AssetBrowser_SelectModuleWindow.selectWindow();
|
||||
}
|
||||
|
||||
function createNewForestMesh(%newPath)
|
||||
function ForestEditorGui::pickedNewMeshTargetModule(%this, %module)
|
||||
{
|
||||
ForestEditorGui.newMeshPath = %newPath;
|
||||
%moduleDef = ModuleDatabase.findModule(%module);
|
||||
|
||||
ForestEditorGui.forestItemDataPath = %moduleDef.ModulePath @ "/scripts/managedData/managedForestItemData." @ $TorqueScriptFileExtension;
|
||||
AssetBrowser.showDialog("ShapeAsset", "selectNewForestMesh", "", "", "");
|
||||
}
|
||||
|
||||
|
|
@ -212,10 +214,10 @@ function selectNewForestMesh(%selectedShapeAssetId)
|
|||
//%str = "datablock TSForestItemData( " @ %name @ " ) { shapeFile = \"" @ %fullPath @ "\"; };";
|
||||
//eval( %str );
|
||||
|
||||
%fullPath = AssetDatabase.acquireAsset(%selectedShapeAssetId).getShapeFile();
|
||||
//%fullPath = AssetDatabase.acquireAsset(%selectedShapeAssetId).getShapeFile();
|
||||
|
||||
new TSForestItemData(%name) {
|
||||
shapeFile = %fullPath;
|
||||
shapeAsset = %selectedShapeAssetId;
|
||||
};
|
||||
|
||||
%isrl = isObject( %name );
|
||||
|
|
@ -228,7 +230,7 @@ function selectNewForestMesh(%selectedShapeAssetId)
|
|||
ForestEditMeshTree.scrollVisible( %item );
|
||||
ForestEditMeshTree.addSelection( %item );
|
||||
|
||||
ForestDataManager.setDirty( %name, ForestEditorGui.newMeshPath @ "/managedForestItemData." @ $TorqueScriptFileExtension );
|
||||
ForestDataManager.setDirty( %name, ForestEditorGui.forestItemDataPath );
|
||||
|
||||
%element = new ForestBrushElement()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue