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

Viewport's "Handle Input Locally" inside ViewportContainer gets set to false after scene reload #46982

Closed
kuhnchris opened this issue Mar 13, 2021 · 2 comments

Comments

@kuhnchris
Copy link

Godot version:
Godot Engine v3.2.4.rc.custom_build.ba174332a - https://godotengine.org

OS/device including version:
Linux (Arch), AMD, GLES3 (not relevant)

Issue description:
The flag on "handle_input_locally" on a Viewport within a ViewportContainer keeps getting reset to false whenever the scene is getting reloaded, despite "true" being the default option.

Steps to reproduce:

  1. Create new project
  2. Create new scene
  3. Create ViewportContainer
  4. Create Viewport within ViewportContainer
  5. Set size so Godot is satisfied
  6. Save Scene
  7. Close Scene
  8. Open Scene again
  9. Check Viewport's handle_input_locally property

Minimal reproduction project:
MinimalDemoViewportIssue.zip

@kuhnchris
Copy link
Author

Could this be the potential issue?

c->set_handle_input_locally(false); //do not handle input locally here

If yes, is there any reasoning for this?
Maybe I'm just not understanding ViewportContainers properly.

Thanks!

@Calinou
Copy link
Member

Calinou commented Jun 21, 2023

Closing in favor of #56502, which is more detailed.

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

No branches or pull requests

2 participants