mirror of
https://github.com/godotengine/godot.git
synced 2026-02-08 03:38:29 +00:00
Merge pull request #115602 from dsnopek/openxr-user-presence-hide-singleton
Don't expose the `OpenXRUserPresenceExtension` singleton
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="OpenXRUserPresenceExtension" inherits="OpenXRExtensionWrapper" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
|
||||
<brief_description>
|
||||
This class implements the OpenXR User Presence Extension.
|
||||
</brief_description>
|
||||
<description>
|
||||
This class implements the OpenXR User Presence Extension.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
</class>
|
||||
@@ -143,7 +143,6 @@ void initialize_openxr_module(ModuleInitializationLevel p_level) {
|
||||
GDREGISTER_CLASS(OpenXRRenderModelExtension);
|
||||
#endif
|
||||
GDREGISTER_CLASS(OpenXRAndroidThreadSettingsExtension);
|
||||
GDREGISTER_CLASS(OpenXRUserPresenceExtension);
|
||||
|
||||
// Note, we're not registering all wrapper classes here, there is no point in exposing them
|
||||
// if there isn't specific logic to expose.
|
||||
@@ -219,7 +218,6 @@ void initialize_openxr_module(ModuleInitializationLevel p_level) {
|
||||
// Register user presence extension as a singleton
|
||||
OpenXRUserPresenceExtension *user_presence_extension = memnew(OpenXRUserPresenceExtension);
|
||||
OpenXRAPI::register_extension_wrapper(user_presence_extension);
|
||||
Engine::get_singleton()->add_singleton(Engine::Singleton("OpenXRUserPresenceExtension", user_presence_extension));
|
||||
|
||||
// register gated extensions
|
||||
if (int(GLOBAL_GET("xr/openxr/extensions/debug_utils")) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user