only refresh certain propagated inherited attributes on being dropped

upd4.1
Jens Mönig 2017-07-12 10:03:38 +02:00
rodzic a0cbf2993c
commit b44caed4b6
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -3531,7 +3531,8 @@ Fixes:
170712
------
* Blocks: fixed #1800. Thanks, Ken, for the bug report!
* Objects, Threads: “new clone of ...” primitive, made TELL, ASK primitives official
* Objects, Threads: “new clone of ...” primitive, made TELL, ASK primitives official
* Objects: only refresh certain propagated inherited attributes on being dropped

Wyświetl plik

@ -4086,7 +4086,10 @@ SpriteMorph.prototype.justDropped = function () {
}
if (this.exemplar) {
this.inheritedAttributes.forEach(function (att) {
myself.refreshInheritedAttribute(att);
if (contains(['direction', 'size', 'costume #'], att)) {
// only refresh certain propagated attributes
myself.refreshInheritedAttribute(att);
}
});
}
this.restoreLayers();