mirror of
https://github.com/godotengine/godot.git
synced 2025-04-07 00:44:24 +08:00
Merge pull request #103869 from Bromeon/bugfix/openxr-editor-apis
Correctly register editor-only `OpenXR*` classes' `api_type`
This commit is contained in:
commit
c2ba0a8646
@ -227,10 +227,16 @@ void initialize_openxr_module(ModuleInitializationLevel p_level) {
|
||||
}
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
// Register as "editor", not "core".
|
||||
ClassDB::APIType prev_api = ClassDB::get_current_api();
|
||||
ClassDB::set_current_api(ClassDB::API_EDITOR);
|
||||
|
||||
GDREGISTER_ABSTRACT_CLASS(OpenXRInteractionProfileEditorBase);
|
||||
GDREGISTER_CLASS(OpenXRInteractionProfileEditor);
|
||||
GDREGISTER_CLASS(OpenXRBindingModifierEditor);
|
||||
|
||||
ClassDB::set_current_api(prev_api);
|
||||
|
||||
EditorNode::add_init_callback(_editor_init);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user