Hollowing gizmo fix: selection of single holes was recently broken
This commit is contained in:
parent
1b8c7c4976
commit
d928d6e47e
@ -58,7 +58,10 @@ void GLGizmoHollow::set_sla_support_data(ModelObject*, const Selection&)
|
|||||||
|
|
||||||
const ModelObject* mo = m_c->selection_info()->model_object();
|
const ModelObject* mo = m_c->selection_info()->model_object();
|
||||||
if (mo) {
|
if (mo) {
|
||||||
reload_cache();
|
if (m_old_mo_id != mo->id()) {
|
||||||
|
reload_cache();
|
||||||
|
m_old_mo_id = mo->id();
|
||||||
|
}
|
||||||
if (m_c->hollowed_mesh() && m_c->hollowed_mesh()->get_hollowed_mesh())
|
if (m_c->hollowed_mesh() && m_c->hollowed_mesh()->get_hollowed_mesh())
|
||||||
m_holes_in_drilled_mesh = mo->sla_drain_holes;
|
m_holes_in_drilled_mesh = mo->sla_drain_holes;
|
||||||
}
|
}
|
||||||
|
@ -43,6 +43,8 @@ private:
|
|||||||
void hollow_mesh(bool postpone_error_messages = false);
|
void hollow_mesh(bool postpone_error_messages = false);
|
||||||
bool unsaved_changes() const;
|
bool unsaved_changes() const;
|
||||||
|
|
||||||
|
ObjectID m_old_mo_id = -1;
|
||||||
|
|
||||||
// bool m_show_supports = true;
|
// bool m_show_supports = true;
|
||||||
float m_new_hole_radius = 2.f; // Size of a new hole.
|
float m_new_hole_radius = 2.f; // Size of a new hole.
|
||||||
float m_new_hole_height = 6.f;
|
float m_new_hole_height = 6.f;
|
||||||
|
Loading…
Reference in New Issue
Block a user