summaryrefslogtreecommitdiff
path: root/modules/openxr/editor/openxr_select_action_dialog.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-17 12:22:32 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-17 12:22:32 +0100
commitccbefa1f4316c46eed35912e954fdf0e8c88c01a (patch)
tree3a7f8b872b6b6201ef5f80cbd2c3d6357bdefb54 /modules/openxr/editor/openxr_select_action_dialog.cpp
parent3b6d697676ff7ea4932cbaa3ca5d288a1d492cb1 (diff)
parent20c192cc2dcd9efa644fd0b0a995adcb4c00c0c4 (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.cpp4
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);
}