fix: 在栅格化成功后切换到液化工具
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -821,7 +821,9 @@ export class ToolManager {
|
||||
if (result) {
|
||||
// 栅格化成功,启动液化
|
||||
message.success("图层已成功栅格化,可以进行液化操作");
|
||||
this._startLiquify(layerId);
|
||||
this._startLiquify(result);
|
||||
|
||||
this.setTool(OperationType.LIQUIFY); // 切换到液化工具
|
||||
} else {
|
||||
// 栅格化失败
|
||||
Modal.error({
|
||||
|
||||
Reference in New Issue
Block a user