部件选取
This commit is contained in:
@@ -197,7 +197,7 @@ export class ToolManager {
|
||||
[OperationType.PART_RECTANGLE]: {
|
||||
name: "部件选取工具-矩形",
|
||||
icon: "part",
|
||||
cursor: "default",
|
||||
cursor: "crosshair",
|
||||
setup: this.setupPartRectangleTool.bind(this),
|
||||
},
|
||||
[OperationType.PART_BRUSH]: {
|
||||
@@ -721,7 +721,7 @@ export class ToolManager {
|
||||
setupPartRectangleTool(isExecute = false) {
|
||||
if (!this.canvas) return;
|
||||
this.canvas.isDrawingMode = false;
|
||||
this.canvas.selection = true;
|
||||
this.canvas.selection = false;
|
||||
if (!isExecute && this.canvasManager && this.canvasManager.partManager) {
|
||||
this.canvasManager.partManager.setCurrentTool(OperationType.PART_RECTANGLE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user