From bb308958340f44ea483b33b18c9741e6df2bdae7 Mon Sep 17 00:00:00 2001 From: liteng <930372551@qq.com> Date: Wed, 28 Nov 2018 07:48:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.Web/src/component/control/FlyControlComponent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ShadowEditor.Web/src/component/control/FlyControlComponent.js b/ShadowEditor.Web/src/component/control/FlyControlComponent.js index 0f3a972a..b2e1b854 100644 --- a/ShadowEditor.Web/src/component/control/FlyControlComponent.js +++ b/ShadowEditor.Web/src/component/control/FlyControlComponent.js @@ -118,7 +118,7 @@ FlyControlComponent.prototype.updateUI = function () { var dragToLook = UI.get('dragToLook', this.id); var autoForward = UI.get('autoForward', this.id); - var options = this.selected.userData.firstPersonOptions || { + var options = this.selected.userData.flyOptions || { movementSpeed: 20.0, rollSpeed: 0.2, dragToLook: false, @@ -142,7 +142,7 @@ FlyControlComponent.prototype.onChange = function () { var dragToLook = UI.get('dragToLook', this.id); var autoForward = UI.get('autoForward', this.id); - Object.assign(this.selected.userData.firstPersonOptions, { + Object.assign(this.selected.userData.flyOptions, { movementSpeed: movementSpeed.getValue(), rollSpeed: rollSpeed.getValue(), dragToLook: dragToLook.getValue(),