diff --git a/flixel/graphics/frames/FlxFrame.hx b/flixel/graphics/frames/FlxFrame.hx index 8eea7d583e..5644e0a7e9 100644 --- a/flixel/graphics/frames/FlxFrame.hx +++ b/flixel/graphics/frames/FlxFrame.hx @@ -761,8 +761,13 @@ enum abstract FlxFrameAngle(Int) from Int to Int * `bottom`. This is for optimization reasons, to reduce arithmetic when drawing vertices */ @:forward(put) -abstract FlxUVRect(FlxRect) from FlxRect to flixel.util.FlxPool.IFlxPooled +abstract FlxUVRect(FlxRect) from FlxRect { + @:to public inline function toIFlxPooled():flixel.util.FlxPool.IFlxPooled + { + return this; + } + public var left(get, set):Float; inline function get_left():Float { return this.x; } inline function set_left(value):Float { return this.x = value; }