fix: only realign grabbable

This commit is contained in:
galister
2024-03-29 14:26:45 +01:00
parent 7d987f5cb8
commit 7eb5201c90
2 changed files with 5 additions and 3 deletions

View File

@@ -131,7 +131,9 @@ impl OverlayState {
Quat::IDENTITY,
translation.into(),
);
self.realign(&app.input_state.hmd);
if self.grabbable {
self.realign(&app.input_state.hmd);
}
self.dirty = true;
}