diff --git a/src/away3d/core/traverse/EntityCollector.as b/src/away3d/core/traverse/EntityCollector.as index 745e1a611..99123589e 100644 --- a/src/away3d/core/traverse/EntityCollector.as +++ b/src/away3d/core/traverse/EntityCollector.as @@ -173,8 +173,10 @@ package away3d.core.traverse */ public function clear():void { - _entryPoint = _camera.scenePosition; - _cameraForward = _camera.forwardVector; + if (_camera) { + _entryPoint = _camera.scenePosition; + _cameraForward = _camera.forwardVector; + } _cullPlanes = _customCullPlanes? _customCullPlanes : (_camera? _camera.frustumPlanes : null); _numCullPlanes = _cullPlanes? _cullPlanes.length : 0; _numTriangles = _numMouseEnableds = 0;