mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-22 21:05:39 +00:00
Ensures that when performing certain actions like painting, erasing, cutting or pasting, it will mark the forest editor as dirty so it will save as expected
This commit is contained in:
parent
0404b743f6
commit
ff2a4daa9f
4 changed files with 21 additions and 1 deletions
|
|
@ -309,6 +309,8 @@ function ForestEditorPlugin::onEditMenuSelect( %this, %editMenu )
|
|||
function ForestEditorPlugin::handleDelete( %this )
|
||||
{
|
||||
ForestTools->SelectionTool.deleteSelection();
|
||||
|
||||
ForestEditorPlugin.dirty = true;
|
||||
}
|
||||
|
||||
function ForestEditorPlugin::handleDeselect( %this )
|
||||
|
|
@ -319,6 +321,8 @@ function ForestEditorPlugin::handleDeselect( %this )
|
|||
function ForestEditorPlugin::handleCut( %this )
|
||||
{
|
||||
ForestTools->SelectionTool.cutSelection();
|
||||
|
||||
ForestEditorPlugin.dirty = true;
|
||||
}
|
||||
|
||||
function ForestEditorPlugin::handleCopy( %this )
|
||||
|
|
@ -329,4 +333,6 @@ function ForestEditorPlugin::handleCopy( %this )
|
|||
function ForestEditorPlugin::handlePaste( %this )
|
||||
{
|
||||
ForestTools->SelectionTool.pasteSelection();
|
||||
|
||||
ForestEditorPlugin.dirty = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,4 +58,9 @@ function ForestSelectionTool::onActivated( %this )
|
|||
function ForestSelectionTool::onDeactivated( %this )
|
||||
{
|
||||
%this.clearSelection();
|
||||
}
|
||||
|
||||
function ForestBrushTool::onAction(%this, %actionMode, %point)
|
||||
{
|
||||
ForestEditorPlugin.dirty = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue