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

@ -105,6 +105,11 @@ ConsoleDocClass( ForestBrushTool,
"@internal"
);
IMPLEMENT_CALLBACK(ForestBrushTool, onAction, void, (U32 mode, Point3F point), (mode, point),
"Called when the editor performs a brush action\n"
"@param mode the Int/Enum value of the mode of the action\n"
"@param point the position the action was performed at\n");
FRangeValidator fBrushRange(0.0f, 150.0f);
void ForestBrushTool::initPersistFields()
{
@ -338,6 +343,8 @@ void ForestBrushTool::_action( const Point3F &point )
_paint( point );
else if ( mMode == Erase || mMode == EraseSelected )
_erase( point );
onAction_callback(mMode, point);
}
inline F32 mCircleArea( F32 radius )

View file

@ -128,7 +128,9 @@ protected:
Point3F mLastBrushNormal;
/// The creation action we're actively filling.
ForestUndoAction *mCurrAction;
ForestUndoAction *mCurrAction;
DECLARE_CALLBACK(void, onAction, (U32 mode, Point3F point));
};
typedef ForestBrushTool::BrushMode ForestBrushMode;