Browse Source

fix for ArcRotateCamera not detecting out of sync when target moves

Adam Bowman 8 năm trước cách đây
mục cha
commit
3386e14f00
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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