Explorar o código

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 %!s(int64=9) %!d(string=hai) anos
pai
achega
4f9dea3aed
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      tools/editor/io_plugins/editor_scene_import_plugin.cpp

+ 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);