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

Ensure that _drop_physics_mouseover only happens when necessary #78078

Merged

Conversation

Sauermann
Copy link
Contributor

@Sauermann Sauermann commented Jun 10, 2023

Previously the call was executed every time, because in the _drop_mouse_over(); a few lines above, gui.mouse_over = nullptr; was set. With this change, it gets executed only the first time, the mouse is moved to a Control.

I have noticed this while investigating coverage-tests for Viewport.

Previously the call was executed every time, because in the
`_drop_mouse_over();` a few lines above, `gui.mouse_over = nullptr;`
was set.
@Sauermann Sauermann requested a review from a team as a code owner June 10, 2023 07:35
@akien-mga akien-mga added this to the 4.1 milestone Jun 10, 2023
Copy link
Member

@RandomShaper RandomShaper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. That said, if the current suboptimal code is not noticeable bad (just a minor annoyance or a negligible performance burglar), I'd suggest scheduling this for 4.2, with cherry-picking for 4.1.1.

@Sauermann
Copy link
Contributor Author

My estimation is, that the current code is not noticeable bad.

@akien-mga akien-mga modified the milestones: 4.1, 4.2 Jun 12, 2023
@akien-mga akien-mga added the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Jun 12, 2023
@YuriSizov YuriSizov changed the title Fix that _drop_physics_mouseover only happens when necessary Ensure that _drop_physics_mouseover only happens when necessary Jul 7, 2023
@akien-mga akien-mga merged commit 7961bc6 into godotengine:master Jul 7, 2023
@Sauermann Sauermann deleted the fix-drop-physics-mouse-over branch July 7, 2023 14:10
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Jul 10, 2023
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants