mirror of
https://github.com/godotengine/godot
synced 2024-09-05 02:08:31 +00:00
[Editor] Don't open AnimationLibrary
as a scene
This commit is contained in:
parent
03e6fbb010
commit
62c9a99ee3
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue