소스 검색

Merge pull request #2332 from abow/master

fix for ArcRotateCamera not detecting out of sync when target moves
David Catuhe 8 년 전
부모
커밋
e78589e136
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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