1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Prohibit inconsistent size state for SubViewport

Prohibit size changes of SubViewports with parent SubViewportContainers that have stretch mode enabled.
This commit is contained in:
Markus Sauermann
2022-10-04 21:53:18 +02:00
parent 0056acf46f
commit decbda68d7
5 changed files with 25 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ void SubViewportContainer::set_stretch_shrink(int p_shrink) {
continue;
}
c->set_size(get_size() / shrink);
c->set_size_force(get_size() / shrink);
}
queue_redraw();
@@ -116,7 +116,7 @@ void SubViewportContainer::_notification(int p_what) {
continue;
}
c->set_size(get_size() / shrink);
c->set_size_force(get_size() / shrink);
}
} break;