Fix DragToSelect breaking match zones

This commit is contained in:
2022-09-13 21:10:53 +00:00
parent 2dc03ffd30
commit dee7acf28a

View File

@@ -71,7 +71,9 @@ class KissExtendedSprite extends flixel.addons.display.FlxExtendedSprite {
var ow = frameWidth;
var oh = frameHeight;
var g = super.loadRotatedGraphic(Graphic, Rotations, Frame, AntiAliasing, AutoBuffer, Key);
rotationPadding.set(frameWidth - ow, frameHeight - oh).scale(0.5);
if (ow != frameWidth || oh != frameHeight) {
rotationPadding.set(frameWidth - ow, frameHeight - oh).scale(0.5);
}
return g;
}