mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
tankfix
This commit is contained in:
parent
5dbec15ae0
commit
0789f869da
1 changed files with 3 additions and 1 deletions
|
@ -448,13 +448,15 @@
|
|||
var props = Entities.getEntityProperties(innerContainer, "boundingBox");
|
||||
var bounds = null;
|
||||
if (props.hasOwnProperty('boundingBox') === true) {
|
||||
var bounds = props.boundingBox;
|
||||
bounds = props.boundingBox;
|
||||
}
|
||||
if (bounds !== null) {
|
||||
lowerCorner = bounds.brn;
|
||||
upperCorner = bounds.tfl;
|
||||
} else {
|
||||
print('NO BOUNDS FOR TANK, returning!!')
|
||||
print('INNER CONTAINER?' + innerContainer)
|
||||
print('INNER PROPS :: ' + JSON.stringify(props));
|
||||
return;
|
||||
}
|
||||
// First pre-load an array with properties on all the other fish so our per-fish loop
|
||||
|
|
Loading…
Reference in a new issue