mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 16:58:28 +02:00
fix updateQueryAACube return-value
This commit is contained in:
parent
f2cb5d4aff
commit
633f63df54
1 changed files with 26 additions and 24 deletions
|
@ -970,7 +970,10 @@ bool SpatiallyNestable::updateQueryAACube() {
|
|||
|
||||
bool success;
|
||||
AACube maxAACube = getMaximumAACube(success);
|
||||
if (success) {
|
||||
if (!success) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (shouldPuffQueryAACube()) {
|
||||
// make an expanded AACube centered on the object
|
||||
float scale = PARENTED_EXPANSION_FACTOR * maxAACube.getScale();
|
||||
|
@ -994,7 +997,6 @@ bool SpatiallyNestable::updateQueryAACube() {
|
|||
});
|
||||
|
||||
_queryAACubeSet = true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue