Fix DragToSelect breaking match zones
This commit is contained in:
@@ -71,7 +71,9 @@ class KissExtendedSprite extends flixel.addons.display.FlxExtendedSprite {
|
|||||||
var ow = frameWidth;
|
var ow = frameWidth;
|
||||||
var oh = frameHeight;
|
var oh = frameHeight;
|
||||||
var g = super.loadRotatedGraphic(Graphic, Rotations, Frame, AntiAliasing, AutoBuffer, Key);
|
var g = super.loadRotatedGraphic(Graphic, Rotations, Frame, AntiAliasing, AutoBuffer, Key);
|
||||||
|
if (ow != frameWidth || oh != frameHeight) {
|
||||||
rotationPadding.set(frameWidth - ow, frameHeight - oh).scale(0.5);
|
rotationPadding.set(frameWidth - ow, frameHeight - oh).scale(0.5);
|
||||||
|
}
|
||||||
return g;
|
return g;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user