From d3e22f368b674c192e30f3049896d4d7b1bb865a Mon Sep 17 00:00:00 2001 From: bighuixiang <472705331@qq.com> Date: Thu, 10 Jul 2025 10:13:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=A3=E5=86=B3=E7=BA=A2=E7=BB=BF?= =?UTF-8?q?=E5=9B=BE=E7=AC=94=E5=88=B7=E9=A2=9C=E8=89=B2=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/Canvas/CanvasEditor/commands/RedGreenCommands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/component/Canvas/CanvasEditor/commands/RedGreenCommands.js b/src/component/Canvas/CanvasEditor/commands/RedGreenCommands.js index 0309755d..c4d60491 100644 --- a/src/component/Canvas/CanvasEditor/commands/RedGreenCommands.js +++ b/src/component/Canvas/CanvasEditor/commands/RedGreenCommands.js @@ -134,7 +134,8 @@ export class BatchInitializeRedGreenModeCommand extends Command { this._setupNormalLayerOpacity(normalLayers); // 这里不需要在这里设置透明度 由图层统一处理 // 9. 创建新的空白图层并设置为活动图层 - this.newEmptyLayerId = await this._createAndActivateEmptyLayer(); + // this.newEmptyLayerId = await this._createAndActivateEmptyLayer(); + this.newEmptyLayerId = normalLayers[0]?.id || null; // 设置普通图层的裁剪对象为衣服底图 if (backgroundObject) {