Hollowing task triggered by the gizmo now spawns a UI job to not block the UI thread

The AABB tree calculation is still done in the UI thread, so it gets blocked for some time
This commit is contained in:
Lukas Matena 2019-11-07 14:25:03 +01:00
parent 4d8631fef6
commit 9836533cb3
5 changed files with 125 additions and 72 deletions

View file

@ -158,6 +158,7 @@ public:
void update_data();
EType get_current_type() const { return m_current; }
GLGizmoBase* get_current() const;
bool is_running() const;
bool handle_shortcut(int key);
@ -206,8 +207,6 @@ private:
float get_total_overlay_height() const;
float get_total_overlay_width() const;
GLGizmoBase* get_current() const;
bool generate_icons_texture() const;
void update_on_off_state(const Vec2d& mouse_pos);