-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Fix TouchScreenButton not redrawn when texture changes #75016
Conversation
Reminds me of #75532 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another thing I noticed is that assigning the same texture will still run the whole logic. We could add an early return (shape is missing it too).
Also I wonder why only drawing was broken. Changing the atlas seems to update node's handles properly even without this PR 🤔
The handles are drawn by the canvas item editor. It checks for bounding rect changes in every physics process notification. |
Thanks! |
Cherry-picked for 4.0.3. |
Would need a dedicated PR for |
Updating
AtlasTexture
rect does not redrawTouchScreenButton
.