fixup for null selection objects (how?)
This commit is contained in:
parent
c48a3fb147
commit
3aa43a7b8b
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ let selection = {
|
||||||
}
|
}
|
||||||
// prevent selection of model and its group
|
// prevent selection of model and its group
|
||||||
let mgsel = selected.filter(s => s instanceof mesh.model).map(m => m.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
|
// highlight selected
|
||||||
for (let object of selected) {
|
for (let object of selected) {
|
||||||
object.select(true);
|
object.select(true);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue