mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-10 14:42:13 -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,14 +57,16 @@ class BoundingBoxTool {
|
||||||
new MoveTool(mode, setSelectedItems, clearSelectedItems, onUpdateImage, switchToTextTool);
|
new MoveTool(mode, setSelectedItems, clearSelectedItems, onUpdateImage, switchToTextTool);
|
||||||
this._currentCursor = null;
|
this._currentCursor = null;
|
||||||
|
|
||||||
paper.project.importSVG(selectionAnchorIcon, {
|
if (!anchorIcon) {
|
||||||
onLoad: function (item) {
|
paper.project.importSVG(selectionAnchorIcon, {
|
||||||
anchorIcon = item;
|
onLoad: function (item) {
|
||||||
item.visible = false;
|
anchorIcon = item;
|
||||||
item.parent = getGuideLayer();
|
item.visible = false;
|
||||||
setGuideItem(item);
|
item.parent = getGuideLayer();
|
||||||
}
|
setGuideItem(item);
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue