godotengine / godot

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

Scene derived from Window does not render correctly in the editor (DisplayServer regression) #57530

Closed ZuBsPaCe closed 2 years ago

ZuBsPaCe commented 2 years ago

Godot version

v4.0.alpha.custom_build [dc4483a3a]

System information

Windows 10, Vulkan Mobile, NVIDIA TI 1200

Issue description

I wanted to edit a scene derived from Window in Godot 4 alpha. The scene was created in 3.4 for an add-on. The editor renders the window border, but the content is either black or filled with garbage. Here's a simplified version, only with a button as child:

image

The content shows the "View dropdown" because I opened it before and toggled the 'Visible' flag of the window a few times.

The scene renders correctly when I run it:

image

Steps to reproduce

1) Create a new scene derived from button. 2) Open an editor dropdown (for example the 'View' dropdown). Otherwise the content will probably just be black. 3) Toggle 'Window->Flags->Visible' a few times.

Minimal reproduction project

godot4-window-render-problem.zip

MinusKube commented 2 years ago

I believe this has been fixed by #63091