From 430b493e89810f550f4ef53a7bc81efcb98d3853 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 3 Aug 2020 20:13:34 -0300 Subject: [PATCH] Don't show brush edges in BrushPreview::FULLALL when we're in DrawingState Fixes issue from 8b6116911d0813694fed3859a09b9d5f4a470dd4 --- src/app/ui/editor/brush_preview.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/ui/editor/brush_preview.cpp b/src/app/ui/editor/brush_preview.cpp index 1fcc07981..267a58467 100644 --- a/src/app/ui/editor/brush_preview.cpp +++ b/src/app/ui/editor/brush_preview.cpp @@ -179,11 +179,13 @@ void BrushPreview::show(const gfx::Point& screenPos) showPreview = m_editor->getState()->requireBrushPreview(); switch (brushPreview) { case app::gen::BrushPreview::FULLALL: - m_type = CROSSHAIR; + if (showPreview) + m_type = CROSSHAIR; cancelEdges = true; break; case app::gen::BrushPreview::FULLNEDGES: - showPreviewWithEdges = true; + if (showPreview) + showPreviewWithEdges = true; break; } break;