mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
[Editor] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
@@ -59,7 +59,7 @@ class ShortcutBin : public Node {
|
||||
return;
|
||||
}
|
||||
Window *grandparent_window = get_window()->get_parent_visible_window();
|
||||
ERR_FAIL_COND(!grandparent_window);
|
||||
ERR_FAIL_NULL(grandparent_window);
|
||||
|
||||
if (Object::cast_to<InputEventKey>(p_event.ptr()) || Object::cast_to<InputEventShortcut>(p_event.ptr())) {
|
||||
// HACK: Propagate the window input to the editor main window to handle global shortcuts.
|
||||
|
||||
Reference in New Issue
Block a user