Browse Source

修正 框选无法全部删除

develop
徐振升 4 years ago
parent
commit
0ed23a618b
  1. 3
      src/app/working-area/working-area.component.ts

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

@ -159,7 +159,6 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
this.selection.objects.forEach(item => {
if (this.allowEdit
&& this.canvasData.gameMode === item.assetData.GameMode) {
console.log(this.canvasData.gameMode);
switch (this.canvasData.gameMode) {
case 0:
delete this.canvasData.originaleveryStoreyData.data[item.assetData.Id];
@ -174,9 +173,9 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
this.canvasData.isChange = true;
break;
}
this.selection.deselectAll();
}
});
this.selection.deselectAll();
this.emit('deleteIcon');
}
});

Loading…
Cancel
Save