summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/gui.js b/gui.js
index 7419ea7..0eb84a9 100644
--- a/gui.js
+++ b/gui.js
@@ -4834,6 +4834,18 @@ SpriteIconMorph.prototype.userMenu = function () {
menu.addItem("duplicate", 'duplicateSprite');
menu.addItem("delete", 'removeSprite');
menu.addLine();
+ if (this.object.anchor) {
+ menu.addItem(
+ localize('detach from') + ' ' + this.object.anchor.name,
+ function () {myself.object.detachFromAnchor(); }
+ );
+ }
+ if (this.object.parts.length) {
+ menu.addItem(
+ 'detach all parts',
+ function () {myself.object.detachAllParts(); }
+ );
+ }
menu.addItem("export...", 'exportSprite');
return menu;
};