Register editor-only OpenXR* classes as api_type = "editor" instead of "core"
This commit is contained in:
@ -225,10 +225,16 @@ void initialize_openxr_module(ModuleInitializationLevel p_level) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TOOLS_ENABLED
|
#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_ABSTRACT_CLASS(OpenXRInteractionProfileEditorBase);
|
||||||
GDREGISTER_CLASS(OpenXRInteractionProfileEditor);
|
GDREGISTER_CLASS(OpenXRInteractionProfileEditor);
|
||||||
GDREGISTER_CLASS(OpenXRBindingModifierEditor);
|
GDREGISTER_CLASS(OpenXRBindingModifierEditor);
|
||||||
|
|
||||||
|
ClassDB::set_current_api(prev_api);
|
||||||
|
|
||||||
EditorNode::add_init_callback(_editor_init);
|
EditorNode::add_init_callback(_editor_init);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user