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