Merge pull request #74974 from timothyqiu/red-hot-kebab

Fix error when opening Inspector's dots menu
This commit is contained in:
Yuri Sizov 2023-03-16 10:15:51 +01:00 committed by GitHub
commit 38a4c9a302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -298,8 +298,7 @@ void InspectorDock::_prepare_resource_extra_popup() {
popup->set_item_disabled(popup->get_item_index(RESOURCE_EDIT_CLIPBOARD), r.is_null());
Ref<Resource> current_res = _get_current_resource();
ERR_FAIL_COND(current_res.is_null());
popup->set_item_disabled(popup->get_item_index(RESOURCE_SHOW_IN_FILESYSTEM), current_res->is_built_in());
popup->set_item_disabled(popup->get_item_index(RESOURCE_SHOW_IN_FILESYSTEM), current_res.is_null() || current_res->is_built_in());
}
Ref<Resource> InspectorDock::_get_current_resource() const {