Explorar o código

Merge pull request #2332 from abow/master

fix for ArcRotateCamera not detecting out of sync when target moves
David Catuhe %!s(int64=8) %!d(string=hai) anos
pai
achega
e78589e136
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Cameras/babylon.arcRotateCamera.ts

+ 1 - 1
src/Cameras/babylon.arcRotateCamera.ts

@@ -267,7 +267,7 @@ module BABYLON {
             if (!super._isSynchronizedViewMatrix())
                 return false;
 
-            return this._cache._target.equals(this._target)
+            return this._cache._target.equals(this._getTargetPosition())
                 && this._cache.alpha === this.alpha
                 && this._cache.beta === this.beta
                 && this._cache.radius === this.radius