[Bf-blender-cvs] [9976bd76d99] xr-world-navigation: fixed device detection

sPlopM noreply at git.blender.org
Thu May 14 17:40:21 CEST 2020


Commit: 9976bd76d993846ffa4dfd3502ec58e74f1d14bc
Author: sPlopM
Date:   Thu May 14 17:39:58 2020 +0200
Branches: xr-world-navigation
https://developer.blender.org/rB9976bd76d993846ffa4dfd3502ec58e74f1d14bc

fixed device detection

===================================================================

M	intern/ghost/intern/GHOST_XrSession.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_XrSession.cpp b/intern/ghost/intern/GHOST_XrSession.cpp
index 58ad8e0619a..76c24a16fd1 100644
--- a/intern/ghost/intern/GHOST_XrSession.cpp
+++ b/intern/ghost/intern/GHOST_XrSession.cpp
@@ -72,6 +72,7 @@ struct OculusTouchProfile {
 };
 
 enum class OpenXrProfile {
+    UNKNOWN,
     OCULUS_TOUCH
 };
 
@@ -87,7 +88,7 @@ struct OpenXRSessionData {
   std::vector<XrView> views;
   std::vector<GHOST_XrSwapchain> swapchains;
 
-  OpenXrProfile detectedProfile;
+  OpenXrProfile detectedProfile = OpenXrProfile::UNKNOWN;
   OculusTouchProfile oculusTouchProfile;
 };



More information about the Bf-blender-cvs mailing list