mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
InstancesHider allows to show/hide supports on demand
This commit is contained in:
parent
5d4014a4a5
commit
e82ead0335
4 changed files with 33 additions and 6 deletions
|
@ -54,6 +54,9 @@ bool GLGizmoHollow::on_init()
|
|||
|
||||
void GLGizmoHollow::set_sla_support_data(ModelObject*, const Selection&)
|
||||
{
|
||||
if (! m_c->selection_info())
|
||||
return;
|
||||
|
||||
const ModelObject* mo = m_c->selection_info()->model_object();
|
||||
if (mo) {
|
||||
reload_cache();
|
||||
|
@ -857,11 +860,12 @@ RENDER_AGAIN:
|
|||
m_c->object_clipper()->set_position(clp_dist, true);
|
||||
|
||||
// make sure supports are shown/hidden as appropriate
|
||||
// DODELAT
|
||||
//if (m_imgui->checkbox(m_desc["show_supports"], m_show_supports)) {
|
||||
// m_parent.toggle_sla_auxiliaries_visibility(m_show_supports, mo, m_c->m_active_instance);
|
||||
// force_refresh = true;
|
||||
//}
|
||||
bool show_sups = m_c->instances_hider()->are_supports_shown();
|
||||
if (m_imgui->checkbox(m_desc["show_supports"], show_sups)) {
|
||||
// m_parent.toggle_sla_auxiliaries_visibility(m_show_supports, mo, m_c->m_active_instance);
|
||||
m_c->instances_hider()->show_supports(show_sups);
|
||||
force_refresh = true;
|
||||
}
|
||||
|
||||
m_imgui->end();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue