Skip to content

Commit

Permalink
AxisAlignedBoundingBox: set aabbPointsDirty on transformFrom
Browse files Browse the repository at this point in the history
When updateWorldBounds was called on an Entity, it computes the new bounds by calling worldBounds.transformFrom(bounds, sceneTransform), but the aabbPoints would not be updated.
  • Loading branch information
nixn committed Jan 7, 2014
1 parent b7cf92e commit 42dd080
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/away3d/bounds/AxisAlignedBoundingBox.as
Expand Up @@ -322,6 +322,8 @@ package away3d.bounds
_max.x = _centerX + _halfExtentsX;
_max.y = _centerY + _halfExtentsY;
_max.z = _centerZ + _halfExtentsZ;

_aabbPointsDirty = true;
}
}
}

0 comments on commit 42dd080

Please sign in to comment.