This commit is contained in:
James B. Pollack 2016-03-17 11:18:56 -07:00
parent 5dbec15ae0
commit 0789f869da

View file

@ -448,13 +448,15 @@
var props = Entities.getEntityProperties(innerContainer, "boundingBox"); var props = Entities.getEntityProperties(innerContainer, "boundingBox");
var bounds = null; var bounds = null;
if (props.hasOwnProperty('boundingBox') === true) { if (props.hasOwnProperty('boundingBox') === true) {
var bounds = props.boundingBox; bounds = props.boundingBox;
} }
if (bounds !== null) { if (bounds !== null) {
lowerCorner = bounds.brn; lowerCorner = bounds.brn;
upperCorner = bounds.tfl; upperCorner = bounds.tfl;
} else { } else {
print('NO BOUNDS FOR TANK, returning!!') print('NO BOUNDS FOR TANK, returning!!')
print('INNER CONTAINER?' + innerContainer)
print('INNER PROPS :: ' + JSON.stringify(props));
return; return;
} }
// First pre-load an array with properties on all the other fish so our per-fish loop // First pre-load an array with properties on all the other fish so our per-fish loop