Merge pull request #115602 from dsnopek/openxr-user-presence-hide-singleton

Don't expose the `OpenXRUserPresenceExtension` singleton
This commit is contained in:
Thaddeus Crews
2026-01-30 09:32:10 -06:00
2 changed files with 0 additions and 13 deletions

View File

@@ -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>

View File

@@ -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) {