From 40a56a628198fcf93ddabb69bfdd8ce06b45724f Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 13 Oct 2020 15:59:14 -0300 Subject: [PATCH] Fix expanded bounds when painting pixels (non-tiles) --- src/app/ui/editor/tool_loop_impl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/ui/editor/tool_loop_impl.cpp b/src/app/ui/editor/tool_loop_impl.cpp index c1495edfd..1d286acb5 100644 --- a/src/app/ui/editor/tool_loop_impl.cpp +++ b/src/app/ui/editor/tool_loop_impl.cpp @@ -531,7 +531,8 @@ public: (getController()->isFreehand() ? ExpandCelCanvas::UseModifiedRegionAsUndoInfo: ExpandCelCanvas::None) | - (!m_tilesMode || m_ink->isSelection() ? + (m_layer->isTilemap() && + (!m_tilesMode || m_ink->isSelection()) ? ExpandCelCanvas::PixelsBounds: ExpandCelCanvas::None)));