Browse Source

[完善] 隐藏车辆设置区域

develop
徐振升 4 years ago
parent
commit
1df6b615e6
  1. 13
      src/app/working-area/working-area.component.ts

13
src/app/working-area/working-area.component.ts

@ -2002,8 +2002,17 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
this.reset();
this.paintMode = mode;
switch (mode) {
case PaintMode.Car:
case PaintMode.endPaint:
this.selectCar = null;
this.backgroundImage.children.forEach(item => {
if (item instanceof PutCarArea) {
if (item.assetData.Type.indexOf(this.selectCar?.Type) !== -1) {
item.visible = true;
} else {
item.visible = false;
}
}
});
break;
}
}

Loading…
Cancel
Save