fixed rotation-bug when flipping costumes in "only turn left/right" mode"

upd4.1
Jens Mönig 2017-07-25 10:13:02 +02:00
rodzic a6ed3f6fd3
commit 08b5947c43
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -3539,6 +3539,10 @@ Fixes:
------
* BYOB: shadow inherited scripts when changing the category of an inherited method
170725
------
* Objects: fixed rotation-bug when flipping costumes in "only turn left/right" mode"
Features:
* polymorphic sprite-local custom blocks

Wyświetl plik

@ -82,7 +82,7 @@ SpeechBubbleMorph, RingMorph, isNil, FileReader, TableDialogMorph,
BlockEditorMorph, BlockDialogMorph, PrototypeHatBlockMorph, localize,
TableMorph, TableFrameMorph, normalizeCanvas, BooleanSlotMorph, HandleMorph*/
modules.objects = '2017-July-12';
modules.objects = '2017-July-25';
var SpriteMorph;
var StageMorph;
@ -7986,6 +7986,7 @@ Costume.prototype.flipped = function () {
ctx.drawImage(this.contents, 0, 0);
flipped = new Costume(
canvas,
this.name,
new Point(
this.width() - this.rotationCenter.x,
this.rotationCenter.y