prevent mouse selection of hidden objects
This commit is contained in:
parent
a18bce59e1
commit
d8ff1e0479
2 changed files with 2 additions and 2 deletions
|
|
@ -401,7 +401,7 @@ function space_init(data) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return api.objects();
|
return api.objects().filter(o => o.visible);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ let toggle = {
|
||||||
let selection = {
|
let selection = {
|
||||||
// @returns {MeshObject[]} or all groups if not strict and no selection
|
// @returns {MeshObject[]} or all groups if not strict and no selection
|
||||||
list(strict = false) {
|
list(strict = false) {
|
||||||
return selected.length || strict ? selected.slice() : groups.slice();
|
return selected.length || strict ? selected.slice() : groups.slice();
|
||||||
},
|
},
|
||||||
|
|
||||||
// return selected groups + groups from selected models
|
// return selected groups + groups from selected models
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue