mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-10 22:47:03 -05:00
Only load anchorIcon if it doesn't exist
This commit is contained in:
parent
9e097ea8c8
commit
231c98da3c
1 changed files with 10 additions and 8 deletions
|
@ -57,6 +57,7 @@ class BoundingBoxTool {
|
|||
new MoveTool(mode, setSelectedItems, clearSelectedItems, onUpdateImage, switchToTextTool);
|
||||
this._currentCursor = null;
|
||||
|
||||
if (!anchorIcon) {
|
||||
paper.project.importSVG(selectionAnchorIcon, {
|
||||
onLoad: function (item) {
|
||||
anchorIcon = item;
|
||||
|
@ -66,6 +67,7 @@ class BoundingBoxTool {
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Should be called if the selection changes to update the bounds of the bounding box.
|
||||
|
|
Loading…
Reference in a new issue