mirror of
https://github.com/overte-org/overte.git
synced 2025-08-16 13:31:38 +02:00
fix logic that checks getEntityProperties return value
This commit is contained in:
parent
f113a83c5b
commit
23b204c0c6
1 changed files with 4 additions and 5 deletions
|
@ -1588,11 +1588,10 @@ function MyController(hand) {
|
|||
|
||||
ids.forEach(function(id) {
|
||||
var props = Entities.getEntityProperties(id, ["boundingBox", "name"]);
|
||||
if (props.name === 'pointer') {
|
||||
continue;
|
||||
}
|
||||
if (!props || !props.boundingBox) {
|
||||
continue;
|
||||
if (!props ||
|
||||
!props.boundingBox ||
|
||||
props.name === 'pointer') {
|
||||
return;
|
||||
}
|
||||
var entityMinPoint = props.boundingBox.brn;
|
||||
var entityMaxPoint = props.boundingBox.tfl;
|
||||
|
|
Loading…
Reference in a new issue