diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-23 22:18:50 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-23 22:18:50 +0100 |
commit | 4582ee1a0f3447531f8bf65d7e7d74fff7273b40 (patch) | |
tree | bd933ecf30a250dcfd956219812355fb9521d741 /modules/openxr/editor/openxr_editor_plugin.cpp | |
parent | d71ee024917a56e0ee2f1de0a50f5dbc011b258d (diff) | |
parent | eb6ca91ba6f04a4ff2e21b3ca097c92b6a68dbc8 (diff) | |
download | redot-engine-4582ee1a0f3447531f8bf65d7e7d74fff7273b40.tar.gz |
Merge pull request #87760 from kitbdev/extract-bottom-dock
Extract BottomPanel from EditorNode
Diffstat (limited to 'modules/openxr/editor/openxr_editor_plugin.cpp')
-rw-r--r-- | modules/openxr/editor/openxr_editor_plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/openxr/editor/openxr_editor_plugin.cpp b/modules/openxr/editor/openxr_editor_plugin.cpp index 559890ecb3..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,7 @@ 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); |