From 4d6f4434cd96b5816b0c7364939637441350e325 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 3 Nov 2020 20:47:13 -0300 Subject: [PATCH] Remove unused flag ExpandCelCanvas::UseModifiedRegionAsUndoInfo --- src/app/ui/editor/tool_loop_impl.cpp | 6 ------ src/app/util/expand_cel_canvas.h | 3 +-- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/app/ui/editor/tool_loop_impl.cpp b/src/app/ui/editor/tool_loop_impl.cpp index 1d286acb5..89e37c726 100644 --- a/src/app/ui/editor/tool_loop_impl.cpp +++ b/src/app/ui/editor/tool_loop_impl.cpp @@ -525,12 +525,6 @@ public: m_tx, ExpandCelCanvas::Flags( ExpandCelCanvas::NeedsSource | - // If the tool is freehand-like, we can use the modified - // region directly as undo information to save the modified - // pixels. See ExpandCelCanvas::commit() for details about this flag. - (getController()->isFreehand() ? - ExpandCelCanvas::UseModifiedRegionAsUndoInfo: - ExpandCelCanvas::None) | (m_layer->isTilemap() && (!m_tilesMode || m_ink->isSelection()) ? ExpandCelCanvas::PixelsBounds: diff --git a/src/app/util/expand_cel_canvas.h b/src/app/util/expand_cel_canvas.h index 5979e1b55..033224350 100644 --- a/src/app/util/expand_cel_canvas.h +++ b/src/app/util/expand_cel_canvas.h @@ -46,10 +46,9 @@ namespace app { enum Flags { None = 0, NeedsSource = 1, - UseModifiedRegionAsUndoInfo = 2, // Use tiles mode but with pixels bounds in dst image (e.g. for // selection preview) - PixelsBounds = 4, + PixelsBounds = 2, }; ExpandCelCanvas(Site site, Layer* layer,