Reenable custom hat blocks when dropping a sprite

dev
Jens Mönig 2016-03-06 21:45:31 -06:00
rodzic ad25c6aefd
commit 345f635fac
2 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -2871,3 +2871,6 @@ end - bulk of 151215
------
* == v4.0.5 ==== - table views
160306
------
* Objects: Reenable custom hat blocks when dropping a sprite

Wyświetl plik

@ -82,7 +82,7 @@ SpeechBubbleMorph, RingMorph, isNil, FileReader, TableDialogMorph,
BlockEditorMorph, BlockDialogMorph, PrototypeHatBlockMorph, localize,
TableMorph, TableFrameMorph*/
modules.objects = '2016-February-24';
modules.objects = '2016-March-06';
var SpriteMorph;
var StageMorph;
@ -3291,6 +3291,10 @@ SpriteMorph.prototype.isCorrectingOutsideDrag = function () {
};
SpriteMorph.prototype.justDropped = function () {
var stage = this.parentThatIsA(StageMorph);
if (stage) {
stage.enableCustomHatBlocks = true;
}
this.restoreLayers();
this.positionTalkBubble();
this.receiveUserInteraction('dropped');