Merge pull request #68358 from Sauermann/fix-pink-512-viewport
Fix SubViewport with default size being pink
This commit is contained in:
commit
bbe8ff24f4
1 changed files with 3 additions and 1 deletions
|
@ -4231,6 +4231,8 @@ void SubViewport::_bind_methods() {
|
|||
BIND_ENUM_CONSTANT(UPDATE_ALWAYS);
|
||||
}
|
||||
|
||||
SubViewport::SubViewport() {}
|
||||
SubViewport::SubViewport() {
|
||||
RS::get_singleton()->viewport_set_size(get_viewport_rid(), get_size().width, get_size().height);
|
||||
}
|
||||
|
||||
SubViewport::~SubViewport() {}
|
||||
|
|
Loading…
Reference in a new issue