diff options
Diffstat (limited to 'source/blender/bmesh/tools')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_decimate_collapse.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/bmesh/tools/bmesh_decimate_collapse.c b/source/blender/bmesh/tools/bmesh_decimate_collapse.c index a081a1b70e4..0a1271c2aa9 100644 --- a/source/blender/bmesh/tools/bmesh_decimate_collapse.c +++ b/source/blender/bmesh/tools/bmesh_decimate_collapse.c @@ -337,12 +337,7 @@ static void bm_decim_build_edge_cost_single( } } - if (eheap_table[BM_elem_index_get(e)]) { - BLI_heap_reinsert(eheap, eheap_table[BM_elem_index_get(e)], cost); - } - else { - eheap_table[BM_elem_index_get(e)] = BLI_heap_insert(eheap, cost, e); - } + BLI_heap_insert_or_update(eheap, &eheap_table[BM_elem_index_get(e)], cost, e); return; clear: |