mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-06-03 01:39:11 -07:00
InstancesHider implementation
Any gizmo can now ask for hiding all but the active instance by returning proper value from on_get_requirements
This commit is contained in:
@@ -1196,10 +1196,13 @@ void GLGizmosManager::activate_gizmo(EType type)
|
||||
return; // gizmo refused to be turned off, do nothing.
|
||||
}
|
||||
|
||||
m_current = type;
|
||||
m_common_gizmos_data->update(get_current()
|
||||
? get_current()->get_requirements()
|
||||
: CommonGizmosDataID(0));
|
||||
|
||||
if (type != Undefined)
|
||||
m_gizmos[type]->set_state(GLGizmoBase::On);
|
||||
|
||||
m_current = type;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user