Skip to content

Commit

Permalink
Merge pull request #91522 from AThousandShips/anim_lib_improve
Browse files Browse the repository at this point in the history
[Editor] Don't open `AnimationLibrary` as a scene
  • Loading branch information
akien-mga committed May 6, 2024
2 parents 94b8a1d + 62c9a99 commit ecfcadb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/filesystem_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ecfcadb

Please sign in to comment.