Fixed runaway selection
This commit is contained in:
@@ -235,7 +235,8 @@ size_t DecimaterT<Mesh>::decimate(size_t _n_collapses, bool _only_selected) {
|
||||
// update heap (former one ring of decimated vertex)
|
||||
for (s_it = support.begin(), s_end = support.end(); s_it != s_end; ++s_it) {
|
||||
assert(!mesh_.status(*s_it).deleted());
|
||||
heap_vertex(*s_it);
|
||||
if (!_only_selected || mesh_.status(*s_it).selected() )
|
||||
heap_vertex(*s_it);
|
||||
}
|
||||
|
||||
// notify observer and stop if the observer requests it
|
||||
|
||||
Reference in New Issue
Block a user