Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4.
This commit is contained in:
@ -170,9 +170,9 @@ Node *SceneCreateDialog::create_scene_root() {
|
||||
root = memnew(Node3D);
|
||||
break;
|
||||
case ROOT_USER_INTERFACE: {
|
||||
Control *gui = memnew(Control);
|
||||
gui->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
root = gui;
|
||||
Control *gui_ctl = memnew(Control);
|
||||
gui_ctl->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
root = gui_ctl;
|
||||
} break;
|
||||
case ROOT_OTHER:
|
||||
root = Object::cast_to<Node>(select_node_dialog->instance_selected());
|
||||
|
||||
Reference in New Issue
Block a user