summaryrefslogtreecommitdiffstats
path: root/modules/openxr/editor/openxr_editor_plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openxr/editor/openxr_editor_plugin.cpp')
-rw-r--r--modules/openxr/editor/openxr_editor_plugin.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/openxr/editor/openxr_editor_plugin.cpp b/modules/openxr/editor/openxr_editor_plugin.cpp
index 51ebbcf44a..f545e31073 100644
--- a/modules/openxr/editor/openxr_editor_plugin.cpp
+++ b/modules/openxr/editor/openxr_editor_plugin.cpp
@@ -33,6 +33,7 @@
#include "../action_map/openxr_action_map.h"
#include "editor/editor_node.h"
+#include "editor/gui/editor_bottom_panel.h"
void OpenXREditorPlugin::edit(Object *p_node) {
if (Object::cast_to<OpenXRActionMap>(p_node)) {
@@ -52,7 +53,12 @@ void OpenXREditorPlugin::make_visible(bool p_visible) {
OpenXREditorPlugin::OpenXREditorPlugin() {
action_map_editor = memnew(OpenXRActionMapEditor);
- EditorNode::get_singleton()->add_bottom_panel_item(TTR("OpenXR Action Map"), action_map_editor);
+ EditorNode::get_bottom_panel()->add_item(TTR("OpenXR Action Map"), action_map_editor);
+
+#ifndef ANDROID_ENABLED
+ select_runtime = memnew(OpenXRSelectRuntime);
+ add_control_to_container(CONTAINER_TOOLBAR, select_runtime);
+#endif
}
OpenXREditorPlugin::~OpenXREditorPlugin() {