diff --git a/src/component/Canvas/CanvasEditor/commands/RasterizeLayerCommand.js b/src/component/Canvas/CanvasEditor/commands/RasterizeLayerCommand.js index 3e9731aa..6b180729 100644 --- a/src/component/Canvas/CanvasEditor/commands/RasterizeLayerCommand.js +++ b/src/component/Canvas/CanvasEditor/commands/RasterizeLayerCommand.js @@ -343,7 +343,7 @@ export class RasterizeLayerCommand extends Command { visible: this.layer.visible, locked: this.layer.locked, opacity: this.layer.opacity, - fabricObjects: [rasterizedImage], + fabricObjects: [], }); // 更新图像对象的图层关联 @@ -353,7 +353,7 @@ export class RasterizeLayerCommand extends Command { layerId: this.rasterizedLayerId, layerName: this.rasterizedLayer.name, }); - + this.rasterizedLayer.fabricObjects = [rasterizedImage.toObject(["id", "layerId", "layerName"])] // 在适当位置添加新的组合图层 this._replaceLayerInStructure();