Recenter lobby GUI when back from sleep and recenter button

This commit is contained in:
Patrick Nicolas
2024-09-09 18:59:07 +02:00
parent 760691568f
commit 27608ca019
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -799,6 +799,12 @@ void scenes::lobby::on_session_state_changed(XrSessionState state)
{
if (state == XR_SESSION_STATE_STOPPING)
discover.reset();
recenter_gui = true;
}
void scenes::lobby::on_reference_space_changed(XrReferenceSpaceType, XrTime)
{
recenter_gui = true;
}
scene::meta & scenes::lobby::get_meta_scene()