-
Notifications
You must be signed in to change notification settings - Fork 717
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
SpriteAnimator stopped displaying anything at version 9.116.0 #2251
Comments
@antiosh We went through a very large overhaul to better support types so some things might have broken down, I'm not sure why that wouldn't appear, I need to do some deep investigation. If you use |
@netgfx I see, thank you. I am not sure I see the updated code you are referring to in that sandbox, you may need to fork it again? And I wouldn't worry too much about that specific animation, I just found a random sprite sheet to use for the example and may not have put in the correct value for |
@antiosh this should work: https://codesandbox.io/p/sandbox/react-three-fiber-sprite-animator-issue-yc54j5?file=%2Fsrc%2FApp.js%3A11%2C10 Adding the code here for reference:
You can also use this one to see different ways to load sprites and properties and stuff, I use it to test new features etc https://codesandbox.io/p/sandbox/r3f-sprite-transition-forked-flp72y |
@netgfx I don't see a |
Yes thank you I corrected it |
three
version: 0.170.0@react-three/fiber
version: 8.17.10@react-three/drei
version: 9.116.0node
version: N/Anpm
(oryarn
) version: N/AProblem description:
In previous drei versions the
SpriteAnimator
component would display my sprite. But when changing to version 9.116.0 suddenly nothing seems to be displayed when using it.Example at version 9.115.0 where a sprite is displayed:
https://codesandbox.io/p/sandbox/react-three-fiber-forked-nn48gz?file=%2Fsrc%2FApp.js
After no code changes and upgrading to 9.116.0, nothing is displayed:
https://codesandbox.io/p/sandbox/react-three-fiber-forked-x3y3hx?file=%2Fsrc%2FApp.js%3A10%2C10-10%2C24&workspaceId=ws_DAmJahDCmpYz2tZqQ5nCrb
Potentially introduced with this change: #2141
(Found by looking through: v9.115.0...v9.116.0)
Relevant code:
Suggested solution:
Since this is a minor version upgrade I would expect that the changes are backward-compatible and do not include breaking changes.
If I am using the component incorrectly please let me know.
The usage seems to be inline with what is mentioned in the docs here: https://drei.docs.pmnd.rs/misc/sprite-animator#sprite-animator
Any help is appreciated!
The text was updated successfully, but these errors were encountered: