### Godot version

4.0 Beta10

### System information

Ubuntu 22.04 (Tuxedo OS)

### Issue description

After importing an *.obj file as a scene, if you click on the mesh in the import settings Godot crashes.

![Screenshot from 2022-12-24 14-38-23](https://user-images.githubusercontent.com/25522325/209452619-3c0ed61b-deaa-4fb6-8ff5-5aa11ff4ed33.png)

I the above screenshot, clicking in the circled area will crash Godot.

### Steps to reproduce

Import .obj file into a project.
Select the file.
Go to import setting.
Change OBJ As Mesh to Scene.
Click Reimport.
Click Save Scenes, Re-Import, and Restart.
Once restarted, open the advanced import settings on the object.
Click the are circled in the description, or in the meshes tab.

### Minimal reproduction project

N/A

Specifically, I lack the distribution rights of the .obj files I am using.  Any .obj file should do, this happened to me on at least 4 different .obj files.
}
					surf_tool->set_smooth_group(smooth_group);
					surf_tool->add_vertex(vertex);
				}
				face[1] = face[2];
			}
		} else if (l.begins_with("s ")) { 
			String what = l.substr(2, l.length()).strip_edges();
			bool do_smooth;
			if (what == "off") {
				do_smooth = false;
			} else {
				do_smooth = true;
			}
			if (do_smooth != smoothing) {
				smooth_group++;
				smoothing = do_smooth;
			}
		} else if ( l.begins_with("usemtl ") || (l.begins_with("o ") || f->eof_reached())) { 
			
			if (surf_tool->get_vertex_array().size()) {
				
				if (normals.size() == 0) {
					surf_tool->generate_normals();
				}
				if (generate_tangents && uvs.size()) {
					surf_tool->generate_tangents();
				}
				surf_tool->index();
				print_verbose("OBJ: Current material library " + current_material_library + " has " + itos(material_map.has(current_material_library)));