From 982bea19f795e66e4c12c70420cb70223327c31a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Wed, 11 Oct 2017 09:01:50 +0200 Subject: [PATCH] make sure to fully remove parts from their anchor when deleting them --- history.txt | 5 +++++ objects.js | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/history.txt b/history.txt index ab80e9a8..3ee758ed 100755 --- a/history.txt +++ b/history.txt @@ -3691,6 +3691,11 @@ Fixes: ------ * Blocks: fixed #1885 +171010 +------ +* Objects: make sure to fully remove parts from their anchor when deleting them + + v4.1 Features: * polymorphic sprite-local custom blocks diff --git a/objects.js b/objects.js index e91b75c6..be86cc67 100644 --- a/objects.js +++ b/objects.js @@ -83,7 +83,7 @@ BlockEditorMorph, BlockDialogMorph, PrototypeHatBlockMorph, localize, TableMorph, TableFrameMorph, normalizeCanvas, BooleanSlotMorph, HandleMorph, AlignmentMorph*/ -modules.objects = '2017-October-04'; +modules.objects = '2017-October-11'; var SpriteMorph; var StageMorph; @@ -6007,6 +6007,9 @@ SpriteMorph.prototype.restoreLayers = function () { SpriteMorph.prototype.destroy = function () { // make sure to sever all inheritance ties to other sprites + if (this.anchor) { + this.anchor.detachPart(this); + } this.emancipate(); if (!this.isTemporary) { this.prune();