mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 00:03:16 +02:00
not a parent or child doesn't mean always recompute queryAACube
This commit is contained in:
parent
ae70f091c3
commit
cf960dc44b
1 changed files with 1 additions and 1 deletions
|
@ -969,7 +969,7 @@ bool SpatiallyNestable::checkAndMaybeUpdateQueryAACube(bool forcePuffed) {
|
|||
AACube maxAACube = getMaximumAACube(success);
|
||||
if (success) {
|
||||
// maybe update _queryAACube
|
||||
if (!_queryAACubeSet || (_parentID.isNull() && _children.size() == 0) || !_queryAACube.contains(maxAACube)) {
|
||||
if (!_queryAACubeSet || !_queryAACube.contains(maxAACube)) {
|
||||
if (forcePuffed || _parentJointIndex != INVALID_JOINT_INDEX || _children.size() > 0 ) {
|
||||
// make an expanded AACube centered on the object
|
||||
float scale = PARENTED_EXPANSION_FACTOR * maxAACube.getScale();
|
||||
|
|
Loading…
Reference in a new issue