From 208a18bee3fcf56b534778e2f4ab1ea830c4c290 Mon Sep 17 00:00:00 2001
From: Sandro Weber <webers@in.tum.de>
Date: Fri, 15 Apr 2016 11:03:42 +0200
Subject: [PATCH] [NRRPLT-3554] no light target updates based on rotation

Change-Id: I7dd94657cb18c3f2b0bbd1dc6c8273110ae3c631
---
 gz3d/src/gzmanipulator.js | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/gz3d/src/gzmanipulator.js b/gz3d/src/gzmanipulator.js
index a4639c2..57d71d0 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);
   }
-- 
GitLab