From 540af4da51cb89b9aca0548c48e54ecb80ec716c Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 10 Mar 2020 18:27:39 +0100 Subject: [PATCH] migrated rotation center setting --- src/objects.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/objects.js b/src/objects.js index 9fd5455e..48a77b8c 100644 --- a/src/objects.js +++ b/src/objects.js @@ -5674,7 +5674,9 @@ SpriteMorph.prototype.setRotationCenter = function (absoluteCoordinate) { ).divideBy(this.scale).rotateBy(radians(90 - this.heading)); normal = this.costume.rotationCenter.add(new Point(delta.x, -delta.y)); this.costume.rotationCenter = normal; - this.drawNew(); + this.changed(); + this.fixLayout(); + this.changed(); }; SpriteMorph.prototype.moveRotationCenter = function () {