Browse Source

Fixed ArcrotateCamera getTarget

David Catuhe 8 years ago
parent
commit
ca1f234236

File diff suppressed because it is too large
+ 18 - 18
dist/preview release/babylon.core.js


File diff suppressed because it is too large
+ 3177 - 3172
dist/preview release/babylon.d.ts


File diff suppressed because it is too large
+ 32 - 32
dist/preview release/babylon.js


File diff suppressed because it is too large
+ 209 - 362
dist/preview release/babylon.max.js


File diff suppressed because it is too large
+ 28 - 28
dist/preview release/babylon.noworker.js


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

@@ -454,6 +454,7 @@
                 this._viewMatrix.m[12] += this.targetScreenOffset.x;
                 this._viewMatrix.m[13] += this.targetScreenOffset.y;
             }
+            this._currentTarget = target;
             return this._viewMatrix;
         }
 

+ 0 - 1
src/Cameras/babylon.targetCamera.ts

@@ -140,7 +140,6 @@
             return this._currentTarget;
         }
 
-
         public _decideIfNeedsToMove(): boolean {
             return Math.abs(this.cameraDirection.x) > 0 || Math.abs(this.cameraDirection.y) > 0 || Math.abs(this.cameraDirection.z) > 0;
         }