diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-17 12:22:32 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-17 12:22:32 +0100 |
commit | ccbefa1f4316c46eed35912e954fdf0e8c88c01a (patch) | |
tree | 3a7f8b872b6b6201ef5f80cbd2c3d6357bdefb54 /modules/openxr/editor/openxr_select_action_dialog.cpp | |
parent | 3b6d697676ff7ea4932cbaa3ca5d288a1d492cb1 (diff) | |
parent | 20c192cc2dcd9efa644fd0b0a995adcb4c00c0c4 (diff) |
Merge pull request #70117 from rsjtdrjgfuzkfg/openxr-action-map-crashfix
OpenXR: fix action map editor crash on save / reset
Diffstat (limited to 'modules/openxr/editor/openxr_select_action_dialog.cpp')
-rw-r--r-- | modules/openxr/editor/openxr_select_action_dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/openxr/editor/openxr_select_action_dialog.cpp b/modules/openxr/editor/openxr_select_action_dialog.cpp index 5f018291d5..c4b2ef95c5 100644 --- a/modules/openxr/editor/openxr_select_action_dialog.cpp +++ b/modules/openxr/editor/openxr_select_action_dialog.cpp @@ -47,7 +47,7 @@ void OpenXRSelectActionDialog::_notification(int p_what) { void OpenXRSelectActionDialog::_on_select_action(const String p_action) { if (selected_action != "") { NodePath button_path = action_buttons[selected_action]; - Button *button = static_cast<Button *>(get_node(button_path)); + Button *button = Object::cast_to<Button>(get_node(button_path)); if (button != nullptr) { button->set_flat(true); } @@ -57,7 +57,7 @@ void OpenXRSelectActionDialog::_on_select_action(const String p_action) { if (selected_action != "") { NodePath button_path = action_buttons[selected_action]; - Button *button = static_cast<Button *>(get_node(button_path)); + Button *button = Object::cast_to<Button>(get_node(button_path)); if (button != nullptr) { button->set_flat(false); } |