Преглед на файлове

Merge pull request #91522 from AThousandShips/anim_lib_improve

[Editor] Don't open `AnimationLibrary` as a scene
Rémi Verschelde преди 1 година
родител
ревизия
ecfcadbdca
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      editor/filesystem_dock.cpp

+ 3 - 1
editor/filesystem_dock.cpp

@@ -1220,8 +1220,10 @@ void FileSystemDock::_select_file(const String &p_path, bool p_select_in_favorit
 
 			if (is_imported) {
 				SceneImportSettingsDialog::get_singleton()->open_settings(p_path, resource_type == "AnimationLibrary");
-			} else {
+			} else if (resource_type == "PackedScene") {
 				EditorNode::get_singleton()->open_request(fpath);
+			} else {
+				EditorNode::get_singleton()->load_resource(fpath);
 			}
 		} else if (ResourceLoader::is_imported(fpath)) {
 			// If the importer has advanced settings, show them.