From f7d8393fa2692c84f385d51c086c53eafef859e1 Mon Sep 17 00:00:00 2001 From: rob-bateman Date: Fri, 25 Jan 2013 16:43:42 +0000 Subject: [PATCH] isIntersectingRay allows for non-mouseenabled entities to be checked --- src/away3d/core/partition/EntityNode.as | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/away3d/core/partition/EntityNode.as b/src/away3d/core/partition/EntityNode.as index 4f889cbe6..fa460aff9 100644 --- a/src/away3d/core/partition/EntityNode.as +++ b/src/away3d/core/partition/EntityNode.as @@ -72,15 +72,16 @@ package away3d.core.partition */ override public function isInFrustum(camera : Camera3D) : Boolean { - if (_entity.isVisible == false) return false; + if (!_entity.isVisible) return false; _entity.pushModelViewProjection(camera); if (_entity.bounds.isInFrustum(_entity.getModelViewProjectionUnsafe())) return true; - else - _entity.popModelViewProjection(); - return false; + + _entity.popModelViewProjection(); + + return false; } /** @@ -88,7 +89,7 @@ package away3d.core.partition */ override public function isIntersectingRay(rayPosition : Vector3D, rayDirection : Vector3D) : Boolean { - if (!_entity.isVisible || !_entity._ancestorsAllowMouseEnabled || !_entity.mouseEnabled) return false; + if (!_entity.isVisible) return false; return _entity.isIntersectingRay(rayPosition, rayDirection); }