Skip to content

FlxRect: Add clone(), set _weak once + doc#3587

Merged
Geokureli merged 1 commit intoHaxeFlixel:devfrom
Geokureli:rect-clone
Apr 8, 2026
Merged

FlxRect: Add clone(), set _weak once + doc#3587
Geokureli merged 1 commit intoHaxeFlixel:devfrom
Geokureli:rect-clone

Conversation

@Geokureli
Copy link
Copy Markdown
Member

  • Adds the clone() method which is copyTo but with no specified target
  • Reworks the put/get process setting weak once on get, rather than in getWeak/put
  • Fixes a bug where rect.copyTo(FlxRect.weak()) would put the destination rect rather than the source rect
  • Adds unit tests

@Geokureli Geokureli added this to the 6.2.0 milestone Apr 7, 2026
@Geokureli Geokureli marked this pull request as ready for review April 7, 2026 16:07
@Geokureli Geokureli merged commit f2dc7ba into HaxeFlixel:dev Apr 8, 2026
10 checks passed
@Geokureli Geokureli deleted the rect-clone branch April 8, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant