Skip to content

Commit 1ac93d1

Browse files
committed
hello_xr: Initialize hand_scale to 1.0
Hand scale was default initialized to 0.0 which made controller cubes invisible if the grabAction was not available/active on startup.
1 parent e4b4611 commit 1ac93d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests/hello_xr/openxr_program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ struct OpenXrProgram : IOpenXrProgram {
351351
XrAction quitAction;
352352
std::array<XrPath, Side::COUNT> handSubactionPath;
353353
std::array<XrSpace, Side::COUNT> handSpace;
354-
std::array<float, Side::COUNT> handScale;
354+
std::array<float, Side::COUNT> handScale = {{1.0f, 1.0f}};
355355
std::array<XrBool32, Side::COUNT> handActive;
356356
};
357357

0 commit comments

Comments
 (0)