Skip to content

Commit

Permalink
Treat "null" height config as 0 because Flatbuffer
Browse files Browse the repository at this point in the history
:c
  • Loading branch information
ButterscotchV committed Nov 30, 2024
1 parent 8610109 commit 6bc4676
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,8 @@ class RPCSettingsHandler(var rpcHandler: RPCHandler, var api: ProtocolAPI) {
}

modelSettings.skeletonHeight()?.let {
if (it.hasHmdHeight()) {
api.server.configManager.vrConfig.skeleton.hmdHeight = it.hmdHeight()
}

if (it.hasFloorHeight()) {
api.server.configManager.vrConfig.skeleton.floorHeight = it.floorHeight()
}
api.server.configManager.vrConfig.skeleton.hmdHeight = it.hmdHeight()
api.server.configManager.vrConfig.skeleton.floorHeight = it.floorHeight()
}

hpm.saveConfig()
Expand Down

0 comments on commit 6bc4676

Please sign in to comment.