/// <summary> /// Called to end terrain painting. /// </summary> private void PaintEnd() { // Skip if nothing was painted if (!IsPainting) { return; } _paintTerrain = null; PaintEnded?.Invoke(); }
/// <summary> /// Called to end foliage painting. /// </summary> private void PaintEnd() { // Skip if nothing was painted if (!IsPainting) { return; } _undoAction.RecordEnd(); Editor.Instance.Undo.AddAction(_undoAction); _undoAction = null; _paintFoliage = null; PaintEnded?.Invoke(); }