Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix shortcut crash in project manager

kobewi385c6c9eb0f5
diff --git a/editor/inspector/editor_inspector.cpp b/editor/inspector/editor_inspector.cpp
index f9e832505c7..90a7398387a 100644
--- a/editor/inspector/editor_inspector.cpp
+++ b/editor/inspector/editor_inspector.cpp
@@ -1368,7 +1368,7 @@ void EditorProperty::shortcut_input(const Ref<InputEvent> &p_event) {
} else if (!internal && ED_IS_SHORTCUT("property_editor/copy_property_path", p_event)) {
menu_option(MENU_COPY_PROPERTY_PATH);
accept_event();
- } else {
+ } else if (EditorContextMenuPluginManager::get_singleton()) {
const Callable custom_callback = EditorContextMenuPluginManager::get_singleton()->match_custom_shortcut(EditorContextMenuPlugin::CONTEXT_SLOT_INSPECTOR_PROPERTY, p_event);
if (custom_callback.is_valid()) {
#ifndef DISABLE_DEPRECATED