Fix issue that flatten gizmo faces not updated after reload from disk (#8036)

Fix issue that flatten gizmo faces not updated after reload from disk (SoftFever/OrcaSlicer#7791)
This commit is contained in:
Noisyfox 2025-01-22 10:03:08 +08:00 committed by GitHub
parent 61331ce113
commit a66fc86e20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -375,6 +375,9 @@ void GLGizmosManager::update_data()
: CommonGizmosDataID(0)); : CommonGizmosDataID(0));
if (m_current != Undefined) m_gizmos[m_current]->data_changed(m_serializing); if (m_current != Undefined) m_gizmos[m_current]->data_changed(m_serializing);
// Orca: hack: Fix issue that flatten gizmo faces not updated after reload from disk
if (m_current != Flatten && !m_gizmos.empty()) m_gizmos[Flatten]->data_changed(m_serializing);
//BBS: GUI refactor: add object manipulation in gizmo //BBS: GUI refactor: add object manipulation in gizmo
m_object_manipulation.update_ui_from_settings(); m_object_manipulation.update_ui_from_settings();
m_object_manipulation.UpdateAndShow(true); m_object_manipulation.UpdateAndShow(true);