mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 18:15:58 +08:00
Fix update order
This commit is contained in:
parent
d08e6d8c1b
commit
9a9c8213cb
@ -37,6 +37,9 @@ public:
|
||||
/// <returns>Return True when use the information otherwise False.</returns>
|
||||
bool on_mouse(const wxMouseEvent &mouse_event) override;
|
||||
|
||||
/// <summary>
|
||||
/// Detect reduction of move for wipetover on selection change
|
||||
/// </summary>
|
||||
void data_changed() override;
|
||||
protected:
|
||||
bool on_init() override;
|
||||
|
@ -217,11 +217,11 @@ void GLGizmosManager::set_hover_id(int id)
|
||||
void GLGizmosManager::update_data()
|
||||
{
|
||||
if (!m_enabled) return;
|
||||
if (m_current != Undefined) m_gizmos[m_current]->data_changed();
|
||||
if (m_common_gizmos_data)
|
||||
m_common_gizmos_data->update(get_current()
|
||||
? get_current()->get_requirements()
|
||||
: CommonGizmosDataID(0));
|
||||
if (m_current != Undefined) m_gizmos[m_current]->data_changed();
|
||||
}
|
||||
|
||||
bool GLGizmosManager::is_running() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user