diff --git a/gz3d/src/gzmanipulator.js b/gz3d/src/gzmanipulator.js index a4639c2a150a19422f649556dd0921167af4f887..57d71d0d59528ee3e5454e947bdb2c6383788715 100644 --- a/gz3d/src/gzmanipulator.js +++ b/gz3d/src/gzmanipulator.js @@ -1106,18 +1106,6 @@ GZ3D.Manipulator = function(camera, mobile, domElement, doc) } } - // Move light target - if (scope.object.children[0] && - (scope.object.children[0] instanceof THREE.SpotLight || - scope.object.children[0] instanceof THREE.DirectionalLight)) - { - var lightObj = scope.object.children[0]; - var dir = new THREE.Vector3(0,0,0); - dir.copy(scope.object.direction); - scope.object.localToWorld(dir); - lightObj.target.position.copy(dir); - } - scope.update(); scope.dispatchEvent(changeEvent); }