Fixed a crash in the multi-material gizmo when bucket fill is selected.

This commit is contained in:
Lukáš Hejl 2021-07-19 10:24:38 +02:00
parent ccf67793bd
commit 5b67fafb75

View File

@ -333,6 +333,9 @@ void TriangleSelector::bucket_fill_select_triangles(const Vec3f& hit, int facet_
if (!visited[current_facet]) {
m_triangles[current_facet].select_by_seed_fill();
for(int neighbor_idx : all_level_neighbors[current_facet]) {
if(neighbor_idx < 0 || visited[neighbor_idx])
continue;
if(!m_triangles[neighbor_idx].is_split()) {
if(m_triangles[neighbor_idx].get_state() == start_facet_state)
facet_queue.push(neighbor_idx);