Skip to content

Commit

Permalink
Allow using loaded height config to continue
Browse files Browse the repository at this point in the history
  • Loading branch information
ButterscotchV committed Nov 30, 2024
1 parent 7527467 commit 8610109
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export function CheckFloorHeightStep({

nextStep();
}}
disabled={!fetchedHeight}
disabled={!fetchedHeight && floorHeight == null}
>
{l10n.getString(
'onboarding-automatic_proportions-check_floor_height-next_step'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export function CheckHeightStep({
<Button
variant="primary"
onClick={nextStep}
disabled={!fetchedHeight}
disabled={!fetchedHeight && hmdHeight == null}
>
{l10n.getString(
'onboarding-automatic_proportions-check_height-next_step'
Expand Down
3 changes: 1 addition & 2 deletions gui/src/hooks/height.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ export function useProvideHeightContext(): HeightContext {
useRPCPacket(RpcMessage.SettingsResponse, (res: SettingsResponseT) => {
if (
!res.modelSettings?.skeletonHeight?.hmdHeight ||
!res.modelSettings.skeletonHeight.floorHeight ||
res.modelSettings.skeletonHeight.hmdHeight -
res.modelSettings.skeletonHeight.floorHeight <=
(res.modelSettings.skeletonHeight.floorHeight ?? 0) <=
MIN_HEIGHT
) {
return;
Expand Down

0 comments on commit 8610109

Please sign in to comment.