kopia lustrzana https://github.com/backface/turtlestitch
migrated rotation center setting
rodzic
93e27404b2
commit
540af4da51
|
@ -5674,7 +5674,9 @@ SpriteMorph.prototype.setRotationCenter = function (absoluteCoordinate) {
|
||||||
).divideBy(this.scale).rotateBy(radians(90 - this.heading));
|
).divideBy(this.scale).rotateBy(radians(90 - this.heading));
|
||||||
normal = this.costume.rotationCenter.add(new Point(delta.x, -delta.y));
|
normal = this.costume.rotationCenter.add(new Point(delta.x, -delta.y));
|
||||||
this.costume.rotationCenter = normal;
|
this.costume.rotationCenter = normal;
|
||||||
this.drawNew();
|
this.changed();
|
||||||
|
this.fixLayout();
|
||||||
|
this.changed();
|
||||||
};
|
};
|
||||||
|
|
||||||
SpriteMorph.prototype.moveRotationCenter = function () {
|
SpriteMorph.prototype.moveRotationCenter = function () {
|
||||||
|
|
Ładowanie…
Reference in New Issue