选择模式下删除选中图层自动激活第一个图层

This commit is contained in:
李志鹏
2025-11-12 10:26:43 +08:00
parent 29d835aeb3
commit e0d1be0cfa
2 changed files with 4 additions and 1 deletions

View File

@@ -608,6 +608,9 @@ export class RemoveLayerCommand extends Command {
);
if (newActiveLayer) {
this.activeLayerId.value = newActiveLayer.id;
if(this.canvas.toolId === OperationType.SELECT){
this.layerManager.selectLayerObjects(newActiveLayer.id);
}
} else {
this.activeLayerId.value = null;
}