画布剪切图层问题
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user