Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slice.Origin is not being set #64

Closed
AristurtleDev opened this issue Feb 27, 2023 · 0 comments
Closed

Slice.Origin is not being set #64

AristurtleDev opened this issue Feb 27, 2023 · 0 comments
Assignees
Labels
🐞 Bug A bug has been identified and need to be fixed. 🔺 Priority: High The issue or pull request made needs to be resolved as soon as possible. 🆕 Status: New This issue or pull request is new and has not been looked at yet.

Comments

@AristurtleDev
Copy link
Owner

Description

When any of the processors create a Slice object for a TextureRegion the constructor of the Slice class takes in the Origin as a parameter but the value is never set for the property.

Steps to Reproduce

  1. Import an Aseprite file that contains slices with pivot data
  2. Use the TextureAtlasProcessor or SpriteSheetProcessor to process the Aseprite file

Expected Behavior

The Slice.Origin value for any Slice element in any TextureRegion to contain the data from the slice's pivot data in Aseprite.

Actual Behavior

All Slice.Origin values are defaulted to Vector2.Zero

Configuration

Not Applicable

Other Information

This is occurring because the Slice.Origin value is never set in the constructor.
image

@AristurtleDev AristurtleDev added the 🆕 Status: New This issue or pull request is new and has not been looked at yet. label Feb 27, 2023
@AristurtleDev AristurtleDev self-assigned this Feb 27, 2023
@AristurtleDev AristurtleDev added 🐞 Bug A bug has been identified and need to be fixed. 🔺 Priority: High The issue or pull request made needs to be resolved as soon as possible. labels Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug A bug has been identified and need to be fixed. 🔺 Priority: High The issue or pull request made needs to be resolved as soon as possible. 🆕 Status: New This issue or pull request is new and has not been looked at yet.
Projects
None yet
Development

No branches or pull requests

1 participant