Przeglądaj źródła

Revert "Change default extension to .tscn when import 3d scene"

Also adds a comment as to why this extension should not be changed.
This commit reverts edf7082326526d76bfda095daa99e56317e30803.
Rémi Verschelde 9 lat temu
rodzic
commit
4f9dea3aed

+ 3 - 1
tools/editor/io_plugins/editor_scene_import_plugin.cpp

@@ -756,7 +756,9 @@ void EditorSceneImportDialog::_import(bool p_and_open) {
 	}
 
 
-	String save_file = save_path->get_text().plus_file(import_path->get_text().get_file().basename()+".tscn");
+	// Scenes should always be imported as binary format since vertex data is large and would take
+	// up a lot of space and time to load if imported as text format (GH-5778)
+	String save_file = save_path->get_text().plus_file(import_path->get_text().get_file().basename()+".scn");
 	print_line("Saving to: "+save_file);