diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2021-08-03 17:27:45 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-08-05 13:48:43 +0200 |
| commit | de2c2be19bed9f78be627045fb671367b2b93122 (patch) | |
| tree | cacdc888b9e0afa64d2b80b0d1faf8480064bd57 /editor/plugins/node_3d_editor_plugin.cpp | |
| parent | 1eff610e2bd71521db6d0f4fee25a641e1c7bdd6 (diff) | |
| download | redot-engine-de2c2be19bed9f78be627045fb671367b2b93122.tar.gz | |
Shortcut: Rename `shortcut` property to `event`
Having a property which has the same name as its class leads to confusing
situations (e.g. `BaseButton` has a `shortcut` property of type `Shortcut`
which has a `shortcut` property of type `InputEvent`).
Also renames `is_event` to `matches_event`, and `is_valid` to `has_valid_event`
to better reflect what the methods check.
Diffstat (limited to 'editor/plugins/node_3d_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/node_3d_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 5f12294e22..e982625e2b 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -2454,7 +2454,7 @@ static bool is_shortcut_pressed(const String &p_path) { if (shortcut.is_null()) { return false; } - InputEventKey *k = Object::cast_to<InputEventKey>(shortcut->get_shortcut().ptr()); + InputEventKey *k = Object::cast_to<InputEventKey>(shortcut->get_event().ptr()); if (k == nullptr) { return false; } |
