Merge pull request #1536 from Areloch/ForestEdDirtyFix

Fixes dirty status behavior of Forest Editor
This commit is contained in:
Brian Roberts 2025-08-12 12:30:53 -05:00 committed by GitHub
commit 2af8bf25d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 1 deletions

View file

@ -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;
}

View file

@ -58,4 +58,9 @@ function ForestSelectionTool::onActivated( %this )
function ForestSelectionTool::onDeactivated( %this )
{
%this.clearSelection();
}
function ForestBrushTool::onAction(%this, %actionMode, %point)
{
ForestEditorPlugin.dirty = true;
}