d/steamvr_lh: Fix disabling of hand simulation

This commit is contained in:
BabbleBones 2024-07-22 14:21:08 -04:00
parent 59c34e17b4
commit 16a26c7c93

View file

@ -253,8 +253,8 @@ ControllerDevice::set_input_class(const InputClass *input_class)
inputs_map.insert({path, &inputs_vec.back()}); inputs_map.insert({path, &inputs_vec.back()});
} }
has_index_hand_tracking = !input_class->finger_curls.empty(); has_index_hand_tracking = debug_get_bool_option_lh_emulate_hand() && !input_class->finger_curls.empty();
if (debug_get_bool_option_lh_emulate_hand() && has_index_hand_tracking) { if (has_index_hand_tracking) {
finger_inputs_vec.reserve(input_class->finger_curls.size()); finger_inputs_vec.reserve(input_class->finger_curls.size());
for (const auto &[path, finger] : input_class->finger_curls) { for (const auto &[path, finger] : input_class->finger_curls) {
assert(finger_inputs_vec.capacity() >= finger_inputs_vec.size() + 1); assert(finger_inputs_vec.capacity() >= finger_inputs_vec.size() + 1);