From fa1f40f169a6489fc3da01abb35a2e2fe57aa25b Mon Sep 17 00:00:00 2001 From: liteng <930372551@qq.com> Date: Wed, 28 Nov 2018 20:55:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DInfinity=E5=92=8C-Infinity?= =?UTF-8?q?=E5=BA=8F=E5=88=97=E5=8C=96=E4=B8=BAnull=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/component/control/OrbitControlComponent.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ShadowEditor.Web/src/component/control/OrbitControlComponent.js b/ShadowEditor.Web/src/component/control/OrbitControlComponent.js index 83c2caa5..bdc35785 100644 --- a/ShadowEditor.Web/src/component/control/OrbitControlComponent.js +++ b/ShadowEditor.Web/src/component/control/OrbitControlComponent.js @@ -315,11 +315,11 @@ OrbitControlComponent.prototype.updateUI = function () { var options = this.selected.userData.orbitOptions || { minDistance: 0, - maxDistance: Infinity, + maxDistance: 99999, minPolarAngle: 0, maxPolarAngle: Math.PI, - minAzimuthAngle: - Infinity, - maxAzimuthAngle: Infinity, + minAzimuthAngle: - 9999, + maxAzimuthAngle: 9999, enableDamping: false, dampingFactor: 0.25, enableZoom: true,