We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d9237c + 9907153 commit c2ba0a8Copy full SHA for c2ba0a8
modules/openxr/register_types.cpp
@@ -227,10 +227,16 @@ void initialize_openxr_module(ModuleInitializationLevel p_level) {
227
}
228
229
#ifdef TOOLS_ENABLED
230
+ // Register as "editor", not "core".
231
+ ClassDB::APIType prev_api = ClassDB::get_current_api();
232
+ ClassDB::set_current_api(ClassDB::API_EDITOR);
233
+
234
GDREGISTER_ABSTRACT_CLASS(OpenXRInteractionProfileEditorBase);
235
GDREGISTER_CLASS(OpenXRInteractionProfileEditor);
236
GDREGISTER_CLASS(OpenXRBindingModifierEditor);
237
238
+ ClassDB::set_current_api(prev_api);
239
240
EditorNode::add_init_callback(_editor_init);
241
#endif
242
0 commit comments