Skip to content

Commit ecfcadb

Browse files
committed
Merge pull request #91522 from AThousandShips/anim_lib_improve
[Editor] Don't open `AnimationLibrary` as a scene
2 parents 94b8a1d + 62c9a99 commit ecfcadb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

editor/filesystem_dock.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,8 +1220,10 @@ void FileSystemDock::_select_file(const String &p_path, bool p_select_in_favorit
12201220

12211221
if (is_imported) {
12221222
SceneImportSettingsDialog::get_singleton()->open_settings(p_path, resource_type == "AnimationLibrary");
1223-
} else {
1223+
} else if (resource_type == "PackedScene") {
12241224
EditorNode::get_singleton()->open_request(fpath);
1225+
} else {
1226+
EditorNode::get_singleton()->load_resource(fpath);
12251227
}
12261228
} else if (ResourceLoader::is_imported(fpath)) {
12271229
// If the importer has advanced settings, show them.

0 commit comments

Comments
 (0)