Fixed an issue for multi-volume objects where the seed fill visualization in the multi-material gizmo didn't disappear after the mouse was moved to another volume.

This commit is contained in:
Lukáš Hejl 2021-06-10 12:50:30 +02:00
parent c59cf5de40
commit ae1a799cf4
2 changed files with 19 additions and 4 deletions

View file

@ -103,6 +103,10 @@ protected:
bool m_seed_fill_enabled = false;
float m_seed_fill_angle = 0.f;
// It stores the value of the previous mesh_id to which the seed fill was applied.
// It is used to detect when the mouse has moved from one volume to another one.
int m_seed_fill_last_mesh_id = -1;
enum class Button {
None,
Left,