From f01a02be9accb5807879febf9fa77fe6fdfd6bd5 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 25 Oct 2018 20:33:14 +0200 Subject: proper update of empty decal --- gui/fpgaviewwidget.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gui/fpgaviewwidget.cc b/gui/fpgaviewwidget.cc index fb5e36b2..eeee74e1 100644 --- a/gui/fpgaviewwidget.cc +++ b/gui/fpgaviewwidget.cc @@ -198,8 +198,6 @@ void FPGAViewWidget::renderGraphicElement(LineShaderData &out, PickQuadTree::Bou bb.setY0(std::min(bb.y0(), y + el.y1)); bb.setX1(std::max(bb.x1(), x + el.x2)); bb.setY1(std::max(bb.y1(), y + el.y2)); - - out.last_render++; return; } @@ -209,14 +207,13 @@ void FPGAViewWidget::renderGraphicElement(LineShaderData &out, PickQuadTree::Bou bb.setY0(std::min(bb.y0(), y + el.y1)); bb.setX1(std::max(bb.x1(), x + el.x2)); bb.setY1(std::max(bb.y1(), y + el.y2)); - - out.last_render++; return; } } void FPGAViewWidget::renderDecal(LineShaderData &out, PickQuadTree::BoundingBox &bb, const DecalXY &decal) { + out.last_render++; if (decal.decal == DecalId()) return; @@ -239,6 +236,7 @@ void FPGAViewWidget::renderArchDecal(LineShaderData out[GraphicElement::STYLE_MA case GraphicElement::STYLE_FRAME: case GraphicElement::STYLE_INACTIVE: case GraphicElement::STYLE_ACTIVE: + out[el.style].last_render++; renderGraphicElement(out[el.style], bb, el, offsetX, offsetY); break; default: -- cgit v1.2.3