Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-08-27 07:41:41 +0300
committerHans Goudey <h.goudey@me.com>2021-08-27 07:41:41 +0300
commita0f754e7749a485c97718433edbbab5ac76cdc7a (patch)
treed968d66e73be6dbac5997a3f5bb8e33e462c96d3 /intern/ghost/intern/GHOST_XrSession.cpp
parent137a5e162c2435662dbb299ff49771e7d2e7598f (diff)
parent523bc981cfeecead5050e7af44bbe252c166d718 (diff)
Merge branch 'master' into refactor-idprop-ui-datarefactor-idprop-ui-data
Diffstat (limited to 'intern/ghost/intern/GHOST_XrSession.cpp')
-rw-r--r--intern/ghost/intern/GHOST_XrSession.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/intern/ghost/intern/GHOST_XrSession.cpp b/intern/ghost/intern/GHOST_XrSession.cpp
index 8b0320ef358..a08b2d6045a 100644
--- a/intern/ghost/intern/GHOST_XrSession.cpp
+++ b/intern/ghost/intern/GHOST_XrSession.cpp
@@ -148,13 +148,12 @@ static void create_reference_spaces(OpenXRSessionData &oxr, const GHOST_XrPose &
if (XR_FAILED(result)) {
/* One of the rare cases where we don't want to immediately throw an exception on failure,
- * since run-times are not required to support the stage reference space. Although we need the
- * stage reference space for absolute tracking, if the runtime doesn't support it then just
- * fallback to the local space. */
+ * since runtimes are not required to support the stage reference space. If the runtime
+ * doesn't support it then just fall back to the local space. */
if (result == XR_ERROR_REFERENCE_SPACE_UNSUPPORTED) {
printf(
- "Warning: XR runtime does not support stage reference space, disabling absolute "
- "tracking.\n");
+ "Warning: XR runtime does not support stage reference space, falling back to local "
+ "reference space.\n");
create_info.referenceSpaceType = XR_REFERENCE_SPACE_TYPE_LOCAL;
CHECK_XR(xrCreateReferenceSpace(oxr.session, &create_info, &oxr.reference_space),
@@ -172,8 +171,9 @@ static void create_reference_spaces(OpenXRSessionData &oxr, const GHOST_XrPose &
"Failed to get stage reference space bounds.");
if (extents.width == 0.0f || extents.height == 0.0f) {
printf(
- "Warning: Invalid stage reference space bounds, disabling absolute tracking. To enable "
- "absolute tracking, please define a tracking space via the XR runtime.\n");
+ "Warning: Invalid stage reference space bounds, falling back to local reference space. "
+ "To use the stage reference space, please define a tracking space via the XR "
+ "runtime.\n");
/* Fallback to local space. */
if (oxr.reference_space != XR_NULL_HANDLE) {