From cef7e7eed1c899618b80ce4a5030726c3956559c Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 24 Feb 2022 17:00:21 -0300 Subject: [PATCH] Don't show edge layers when we draw If we have the View > Show > Layer Edges option enabled, the active layer edges are always visible, and it is confusing when we're drawing because we temporarily modify the cel position/bounds. It's better if we hide the edges in the DrawingState. Regression introduced in 31bf651d8b8284d84fed14ad9b4e1eeaa6df40eb --- src/app/ui/editor/drawing_state.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/ui/editor/drawing_state.h b/src/app/ui/editor/drawing_state.h index 18a3bed5d..e4bc87a74 100644 --- a/src/app/ui/editor/drawing_state.h +++ b/src/app/ui/editor/drawing_state.h @@ -47,6 +47,13 @@ namespace app { // already drawing (viewing the real trace). virtual bool requireBrushPreview() override { return false; } + // Don't show layer edges when we're drawing as the cel + // position/bounds is modified and the feedback is + // confusing. (This is the original behavior, maybe in the future + // we could fix this in other way and show how the edge of the cel + // is expanded dynamically while we paint.) + virtual bool allowLayerEdges() override { return false; } + virtual bool getGridBounds(Editor* editor, gfx::Rect& gridBounds) override; void initToolLoop(Editor* editor,