画布剪切图层问题

This commit is contained in:
李志鹏
2025-10-17 17:27:59 +08:00
parent 90b4de16d8
commit 550af61181

View File

@@ -1819,7 +1819,8 @@ export class LayerManager {
}
// 检查是否是唯一的普通图层
const normalLayers = this.layers.value.filter((l) => !l.isBackground);
const normalLayers = this.layers.value.filter((l) => !l.isBackground && !l.isFixed);
console.log("普通图层:", normalLayers)
if (normalLayers.length === 1) {
console.warn("不能剪切唯一的普通图层");
return null;