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

In an HBoxContainer a Viewport with size 0 in a stretch-enabled VIewportcontainer does not render until first resize #35677

Open
Grosskopf opened this issue Jan 28, 2020 · 2 comments

Comments

@Grosskopf
Copy link
Contributor

Godot version:

3.1.2

OS/device including version:

OpenSuse Tumbleweed

Issue description:

is related to #26187 and can be easily fixed setting the viewport size to something good in the first place but maybe this helps someone figure out #34805

Steps to reproduce:

make a 3d scene and a 2d scene, put a viewportcontainer in a hboxcontainer and make them resize and enable stretch,
put the viewport in the viewportcontainer and put the viewports size to 0,0, notice how it doesn't render on first frames,
resize the window to resize all the containers
notice how it now works :D

Minimal reproduction project:

testproject.zip

@Grosskopf Grosskopf changed the title In an HBoxContainer a Viewport with size 0 in a stretch-enabled VIewportcontainer does not render untill first resize In an HBoxContainer a Viewport with size 0 in a stretch-enabled VIewportcontainer does not render until first resize Jan 30, 2020
@KoBeWi
Copy link
Member

KoBeWi commented Dec 15, 2020

Still valid in a511a26

@Calinou
Copy link
Member

Calinou commented Oct 1, 2021

and can be easily fixed setting the viewport size to something good in the first place

This is fixed in master by #48814.

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

4 participants