You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Rename Control PRESET_WIDE to PRESET_FULL_RECT
This commit is contained in:
@@ -4494,7 +4494,7 @@ Node3DEditorViewport::Node3DEditorViewport(Node3DEditor *p_spatial_editor, int p
|
||||
subviewport_container = c;
|
||||
c->set_stretch(true);
|
||||
add_child(c);
|
||||
c->set_anchors_and_offsets_preset(Control::PRESET_WIDE);
|
||||
c->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
viewport = memnew(SubViewport);
|
||||
viewport->set_disable_input(true);
|
||||
|
||||
@@ -4502,7 +4502,7 @@ Node3DEditorViewport::Node3DEditorViewport(Node3DEditor *p_spatial_editor, int p
|
||||
surface = memnew(Control);
|
||||
surface->set_drag_forwarding(this);
|
||||
add_child(surface);
|
||||
surface->set_anchors_and_offsets_preset(Control::PRESET_WIDE);
|
||||
surface->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
surface->set_clip_contents(true);
|
||||
camera = memnew(Camera3D);
|
||||
camera->set_disable_gizmos(true);
|
||||
@@ -7233,7 +7233,7 @@ void Node3DEditor::_toggle_maximize_view(Object *p_viewport) {
|
||||
if (!maximized) {
|
||||
for (uint32_t i = 0; i < VIEWPORTS_COUNT; i++) {
|
||||
if (i == (uint32_t)index) {
|
||||
viewports[i]->set_anchors_and_offsets_preset(Control::PRESET_WIDE);
|
||||
viewports[i]->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
} else {
|
||||
viewports[i]->hide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user