summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCode WvS <code-wvs@quantentunnel.de>2015-03-08 14:50:18 +0100
committerCode WvS <code-wvs@quantentunnel.de>2015-03-08 14:50:18 +0100
commit44dcfed5c067caaf953892c26106f6b6f7843c89 (patch)
treecb7e962ae31deadeb0490ad04563d54763bf18c5
parentb6f3dbe13eea22b2bb9ae74c68a3bfa4ec227247 (diff)
downloadsnap-yow-44dcfed5c067caaf953892c26106f6b6f7843c89.tar.gz
snap-yow-44dcfed5c067caaf953892c26106f6b6f7843c89.zip
clone markers correctly
-rw-r--r--objects.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/objects.js b/objects.js
index a1b28bc..4917ad7 100644
--- a/objects.js
+++ b/objects.js
@@ -1502,6 +1502,8 @@ SpriteMorph.prototype.fullCopy = function () {
dp.rotatesWithAnchor = part.rotatesWithAnchor;
c.attachPart(dp);
});
+ // makes updateMarker() create a new marker
+ c.marker = null;
return c;
};
@@ -2856,6 +2858,7 @@ SpriteMorph.prototype.clonify = function (stage) {
SpriteMorph.prototype.removeClone = function () {
if (this.isClone) {
// this.stopTalking();
+ window.spriteGroup.removeLayer(this.marker);
this.parent.threads.stopAllForReceiver(this);
this.destroy();
this.parent.cloneCount -= 1;