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
Selection hitbox messed up on sprite with repeated texture #60141
Labels
Milestone
Comments
Does it work on Godot 3.4.4? |
No — the repeat feature was introduced in 4.0 if I'm not wrong. |
The cause is here: Lines 312 to 333 in e74bf83
Currently it's always executing the else block. |
And for reference it works fine in 3.x, as texture repeat flags are checked accordingly in there: Lines 327 to 328 in 7cfd984
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Godot version
4.0 alpha6
System information
Windows 10, Vulkan Desktop
Issue description
When I create a sprite with a repeated texture, clicking on the sprite in some areas does not select it.
Clicking on any part of the sprite I've highlighted in yellow behaves normally and selects the sprite as expected, but clicking on any other part of the sprite behaves as if I clicked on empty space and deselects the sprite.
Steps to reproduce
Minimal reproduction project
Selection Bug - 4.0 alpha6.zip
The text was updated successfully, but these errors were encountered: