mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[Editor] Replace ERR_FAIL_COND
with ERR_FAIL_NULL
where applicable
This commit is contained in:
parent
5f1e56ff26
commit
75ee58fd04
61 changed files with 217 additions and 217 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue