Skip to content

Fix freelook in 3D when multiple viewports are open #107530

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

Merged

Conversation

ryevdokimov
Copy link
Contributor

@ryevdokimov ryevdokimov commented Jun 14, 2025

Supersedes: #90037, #103093

The problem was that when the mouse is captured it could be over a UI element that is not the viewport where freelook is active, which prevents the viewport surface from getting inputs. The solution is to redirect the inputs back to the freelook viewport.

 

2025-06-14.14-14-52.mp4

@ryevdokimov ryevdokimov requested a review from a team as a code owner June 14, 2025 12:05
@Chaosus Chaosus added this to the 4.x milestone Jun 14, 2025
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Tested locally, it works as expected. Code looks good to me.

@akien-mga akien-mga modified the milestones: 4.x, 4.5 Jun 25, 2025
@akien-mga akien-mga merged commit 8cd5659 into godotengine:master Jun 25, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@GeorgeS2019
Copy link

Do we have a demo ?

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