mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 10:15:55 +08:00
A little optimizaiton
This commit is contained in:
parent
93c6915e9d
commit
12cb930634
@ -1314,8 +1314,8 @@ bool GLGizmoSlaSupports::has_backend_supports() const
|
|||||||
{
|
{
|
||||||
// find SlaPrintObject with this ID
|
// find SlaPrintObject with this ID
|
||||||
for (const SLAPrintObject* po : m_parent.sla_print()->objects()) {
|
for (const SLAPrintObject* po : m_parent.sla_print()->objects()) {
|
||||||
if (po->model_object()->id() == m_model_object->id() && po->is_step_done(slaposSupportPoints))
|
if (po->model_object()->id() == m_model_object->id())
|
||||||
return true;
|
return po->is_step_done(slaposSupportPoints);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user