From 12cb930634f81791d60494df5f41c863934b3b96 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Fri, 23 Aug 2019 13:27:19 +0200 Subject: [PATCH] A little optimizaiton --- src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp b/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp index 69d57857b..693c3c074 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp @@ -1314,8 +1314,8 @@ bool GLGizmoSlaSupports::has_backend_supports() const { // find SlaPrintObject with this ID for (const SLAPrintObject* po : m_parent.sla_print()->objects()) { - if (po->model_object()->id() == m_model_object->id() && po->is_step_done(slaposSupportPoints)) - return true; + if (po->model_object()->id() == m_model_object->id()) + return po->is_step_done(slaposSupportPoints); } return false; }