From a5bc0a3c30f0bfb57f5e92e06e2e18a41fadecee Mon Sep 17 00:00:00 2001 From: liteng <930372551@qq.com> Date: Tue, 16 Jul 2019 08:00:50 +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 --- .../src/editor2/component/FireComponent.jsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ShadowEditor.Web/src/editor2/component/FireComponent.jsx b/ShadowEditor.Web/src/editor2/component/FireComponent.jsx index a640db4e..2a377b08 100644 --- a/ShadowEditor.Web/src/editor2/component/FireComponent.jsx +++ b/ShadowEditor.Web/src/editor2/component/FireComponent.jsx @@ -63,14 +63,12 @@ class FireComponent extends React.Component { this.selected = editor.selected; - var fire = this.selected.userData.fire; - this.setState({ show: true, - width: fire.mesh.userData.width, - height: fire.mesh.userData.height, - depth: fire.mesh.userData.depth, - sliceSpacing: fire.mesh.userData.sliceSpacing, + width: this.selected.userData.width, + height: this.selected.userData.height, + depth: this.selected.userData.depth, + sliceSpacing: this.selected.userData.sliceSpacing, previewText: this.isPlaying ? L_CANCEL : L_PREVIEW, }); }