godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.26k stars 20.23k forks source link

TreeItem buttons do not function in a SubViewport using the push_input method. #74868

Closed DAShoe1 closed 1 year ago

DAShoe1 commented 1 year ago

Godot version

4.0.stable

System information

Windows 10

Issue description

In my project, we are rendering a GUI to a QuadMesh as an in-game interactive display. We push mouse click events when the player clicks the display. This worked fine during 4.0 beta, but after moving to the stable release the buttons on TreeItems stopped working. I put together a MRP and went back through the versions and it seems the issue started in RC1.

Steps to reproduce

When running the MRP, it has a standard GUI on the left hand side of the screen and a QuadMesh rendered GUI on the right hand side. If you click the + button on an item, it will add another item to the list. On the QuadMesh you will see that you can highlight and collapse items in the list, but the + button does not function. If you run the MRP on 4.0.beta17 everything will function as expected.

Minimal reproduction project

TreeUI_through_SubViewport.zip

Sauermann commented 1 year ago

Bisecting shows, that this got introduced in #71768.