Browse Source

加油机选中bug修复

dev
刘向辉 3 years ago
parent
commit
22560acd80
  1. 4
      src/app/babylon/view/facilityinfoinscene-window/facilityinfoinscene-window.ts

4
src/app/babylon/view/facilityinfoinscene-window/facilityinfoinscene-window.ts

@ -98,6 +98,7 @@ export class FacilityInfoInSceneWindow extends UIBase {
{
if (this.currentFacility != null) {
for (let i = 0; i < this.currentFacility.length; i++) {
console.log("取消选中", facilityInfoUIItem.getName());
this.currentFacility[i].onSelect(false);
}
this.currentFacility = [];
@ -530,7 +531,8 @@ export class FacilityInfoInSceneWindow extends UIBase {
//this.playJYJSelectEffect(true, result);
let facilityItem: FacilityInfoUIItem = FacilityInfoInSceneWindow.instance.getFacilityItem(result);
console.log("场景中选中设备", facilityItem); //通知前端
facilityItem.onSelect(true);
this.selectFacilityItem(facilityItem);
// facilityItem.onSelect(true);
//FacilityInfoInSceneWindow.instance.selectFacilityItemToThree([facilityItem], true);
//console.log(facilityItem.getHeadUIPos());
}

Loading…
Cancel
Save