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, Quat::IDENTITY,
translation.into(), translation.into(),
); );
if self.grabbable {
self.realign(&app.input_state.hmd); self.realign(&app.input_state.hmd);
}
self.dirty = true; self.dirty = true;
} }

View File

@@ -528,7 +528,7 @@ elements:
rect: [330, 505, 220, 30] rect: [330, 505, 220, 30]
font_size: 12 font_size: 12
fg_color: "#ffffff" fg_color: "#ffffff"
bg_color: "#303010" bg_color: "#401010"
text: "Enabled" text: "Enabled"
click_down: click_down:
- type: System - type: System
@@ -539,7 +539,7 @@ elements:
rect: [330, 555, 220, 30] rect: [330, 555, 220, 30]
font_size: 12 font_size: 12
fg_color: "#ffffff" fg_color: "#ffffff"
bg_color: "#303010" bg_color: "#401010"
text: "Sound Enabled" text: "Sound Enabled"
click_down: click_down:
- type: System - type: System