fix: 在栅格化成功后切换到液化工具

This commit is contained in:
bighuixiang
2025-07-24 21:49:29 +08:00
parent dc9f3d4a4f
commit a8033642fb
2 changed files with 5 additions and 1 deletions

View File

@@ -112,6 +112,8 @@ export class RasterizeLayerCommand extends Command {
this.canvas?.thumbnailManager?.generateLayerThumbnail?.(
this.rasterizedLayerId
);
this.layerManager.activeLayerId.value = this.rasterizedLayerId;
return this.rasterizedLayerId;
} catch (error) {
console.error("组合图层失败:", error);

View File

@@ -821,7 +821,9 @@ export class ToolManager {
if (result) {
// 栅格化成功,启动液化
message.success("图层已成功栅格化,可以进行液化操作");
this._startLiquify(layerId);
this._startLiquify(result);
this.setTool(OperationType.LIQUIFY); // 切换到液化工具
} else {
// 栅格化失败
Modal.error({