From e27b9139142a7298f24b729bebf24df9701943a2 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Mon, 18 Jan 2021 15:33:23 +0100 Subject: [PATCH] Cleanup --- Sources/arm/node/brush/BrushOutputNode.hx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Sources/arm/node/brush/BrushOutputNode.hx b/Sources/arm/node/brush/BrushOutputNode.hx index 8bc9da66..17581f68 100644 --- a/Sources/arm/node/brush/BrushOutputNode.hx +++ b/Sources/arm/node/brush/BrushOutputNode.hx @@ -117,6 +117,7 @@ class BrushOutputNode extends LogicNode { if (down && Context.tool == ToolColorId && Project.assets.length > 0) { Context.colorIdPicked = true; } + // Prevent painting the same spot var sameSpot = Context.paintVec.x == Context.lastPaintX && Context.paintVec.y == Context.lastPaintY; var lazy = Context.tool == ToolBrush && Context.brushLazyRadius > 0; @@ -137,10 +138,7 @@ class BrushOutputNode extends LogicNode { parseInputs(); } - var decal = Context.tool == ToolDecal || Context.tool == ToolText; - var paintFrames = decal ? 1 : 4; - - if (Context.painted <= paintFrames) { + if (Context.painted <= 1) { Context.pdirty = 1; Context.rdirty = 2; }