Update sub-viewport canvas items to ensure oversampling is applied correctly.

This commit is contained in:
bruvzg 2022-03-29 10:44:09 +03:00
parent c5efda5f4e
commit 76174cb05a
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38

View File

@ -1038,8 +1038,8 @@ Transform2D Viewport::get_final_transform() const {
void Viewport::_update_canvas_items(Node *p_node) {
if (p_node != this) {
Viewport *vp = Object::cast_to<Viewport>(p_node);
if (vp) {
Window *w = Object::cast_to<Window>(p_node);
if (w && (!w->is_inside_tree() || !w->is_embedded())) {
return;
}