fixup for null selection objects (how?)

This commit is contained in:
Stewart Allen 2022-01-28 19:18:45 -05:00
commit 3aa43a7b8b

View file

@ -133,7 +133,7 @@ let selection = {
}
// prevent selection of model and its group
let mgsel = selected.filter(s => s instanceof mesh.model).map(m => m.group);
selected = selected.filter(sel => !mgsel.contains(sel));
selected = selected.filter(sel => !mgsel.contains(sel)).filter(v => v);
// highlight selected
for (let object of selected) {
object.select(true);