From f903c4345316dc793a709feb422b5ae9802ea389 Mon Sep 17 00:00:00 2001 From: liuxianghui <519646741@qq.com> Date: Tue, 30 Nov 2021 10:57:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E6=97=B6=EF=BC=8C=E6=B2=A1=E9=BB=98=E8=AE=A4=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E5=B9=B6=E5=BC=B9=E5=87=BA=E5=B1=9E=E6=80=A7=E6=A0=8F?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../facilityinfoinscene-window.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/babylon/view/facilityinfoinscene-window/facilityinfoinscene-window.ts b/src/app/babylon/view/facilityinfoinscene-window/facilityinfoinscene-window.ts index 87d6761..3442ea7 100644 --- a/src/app/babylon/view/facilityinfoinscene-window/facilityinfoinscene-window.ts +++ b/src/app/babylon/view/facilityinfoinscene-window/facilityinfoinscene-window.ts @@ -2,6 +2,7 @@ import { AbstractMesh, Color3, EventState, Mesh, PickingInfo, PointerEventTypes, import { classToClass } from "class-transformer"; import { PlanComponent } from "src/app/pages/plan/plan.component"; import { ModelChangeType } from "../../controller/data-manager"; +import { EventManager } from "../../controller/event-manager/event-manager"; import { Event_KeyboardInput } from "../../controller/event-manager/events/event-keyboard-input"; import { Event_ModelInfoChange } from "../../controller/event-manager/events/event-modelinfo-change"; import { ModeManager, ModeType } from "../../controller/mode-manager"; @@ -261,7 +262,7 @@ export class FacilityInfoInSceneWindow extends UIBase { FacilityInfoInSceneWindow.instance = this; this.three = PlanComponent.instance; - // EventManager.addListener(Event_ModelInfoChange, this.onModelInfoChange); + EventManager.addListener(Event_ModelInfoChange, this.onModelInfoChange); GizmoTool.onPickMeshInfoObservable.add(this.onClickModel); this.currentFacility = []; @@ -275,7 +276,7 @@ export class FacilityInfoInSceneWindow extends UIBase { onClose() { super.onClose(); - //EventManager.removeCallback(Event_ModelInfoChange, this.onModelInfoChange); + EventManager.removeCallback(Event_ModelInfoChange, this.onModelInfoChange); GizmoTool.onPickMeshInfoObservable.removeCallback(this.onClickModel); } @@ -638,7 +639,7 @@ export class FacilityInfoInSceneWindow extends UIBase { } // facilityInfo.setSelectEnable(true); - // this.selectFacilityItemToThree(facilityInfoUIItem); + this.selectFacilityItemToThree([facilityInfoUIItem], true); } //this.onClickModel(facilityInfoUIItem);