diff options
| author | Code WvS <code-wvs@quantentunnel.de> | 2015-03-08 14:50:18 +0100 |
|---|---|---|
| committer | Code WvS <code-wvs@quantentunnel.de> | 2015-03-08 14:50:18 +0100 |
| commit | 44dcfed5c067caaf953892c26106f6b6f7843c89 (patch) | |
| tree | cb7e962ae31deadeb0490ad04563d54763bf18c5 | |
| parent | b6f3dbe13eea22b2bb9ae74c68a3bfa4ec227247 (diff) | |
| download | snap-yow-44dcfed5c067caaf953892c26106f6b6f7843c89.tar.gz snap-yow-44dcfed5c067caaf953892c26106f6b6f7843c89.zip | |
clone markers correctly
| -rw-r--r-- | objects.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |
