Repository navigation
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev #3773 +/- ##
==========================================
+ Coverage 59.96% 60.40% +0.44%
==========================================
Files 772 773 +1
Lines 27728 27780 +52
Branches 5231 5264 +33
==========================================
+ Hits 16627 16781 +154
+ Misses 9586 9465 -121
- Partials 1515 1534 +19
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3772
The pivot/collision editor previously drew every collider as a rectangle and unconditionally saved it with
setCollisionShapeRect(). Existing circle, capsule, and polygon configurations could therefore be displayed incorrectly and overwritten on save.Behavior
rectcirclecapsulepolygonautononePivot-only saves preserve shape type and parameters. Collision offsets compensate for costume pivot changes so explicit colliders stay aligned with the artwork. Trigger configuration remains separate and is preserved.
Editing uses costume coordinates, after
bitmapResolutionand before spritesizeand rotation. A separate read-only preview applies the initial size, heading, rotation style, and costumefaceRight; circle information includes the resulting world diameter. Preview fitting includes offset shape bounds. For example, radius 10 at size 2 displays a world diameter of 40 without treating image pixels as collider units.The geometry follows the pinned SPX 4.0.1 implementation: shape application and offsets, rotation and flip rules, and separate collision/trigger configuration.
Validation
git diff --check.nonepreservation; rotated and mirrored previews. The fixture used raw anchor (100, 75), bitmap resolution 4, radius 10, and size 2. The temporary page is excluded from this PR and no cloud projects were modified.Limits