Option to gently fade chaperone to disabled below a certain height (#622)

* Option to fade out chaperone when HMD goes below a configured height

Useful for setups in which you have a seat just outside your VR space,
or like to sit in the middle of your space for any amount of time. Will
fade out the boundaries to 0% opacity over 5 seconds, 5 seconds after
you sit down. Standing back up to the configured height will make them
pop back in immediately.

Can be found under Chaperone -> Additional Settings.

* Update format.sh to require clang-format v10

* Use fade distance instead of opacity, opacity inconsistently applied

* Bugfixes (#624)

* stop crashing on HMD Init Errors, as well as bypass force quit on all steamvr Init Errors

* add qtc clang to gitignore

* add app volume adjustment

* adjust app volume placement in menu

* fix type error

* increment version

* fix version number

---------

Co-authored-by: ykeara <ykeara1@gmail.com>
This commit is contained in:
Chelsea Jaggi
2023-05-17 14:21:59 -05:00
committed by GitHub
co-authored by ykeara
parent 65b5aace06
commit 1cfd9ff104
14 changed files with 340 additions and 14 deletions
+1 -1
View File
@@ -1 +1 @@
5.6.2-release
5.7.0-release
+15 -4
View File
@@ -1,17 +1,28 @@
#!/usr/bin/env bash
set -e
clang-format --version
if [ -x /usr/bin/clang-format-10 ]; then
CLANG_FORMAT_EXE=clang-format-10
else
CLANG_FORMAT_EXE=clang-format
fi
CLANG_VERSION="$($CLANG_FORMAT_EXE --version)"
echo $CLANG_VERSION
if [[ "$CLANG_VERSION" != *"clang-format version 10"* ]]; then
echo "Wrong clang-format version found! Install version 10"
exit 1
fi
if [ $? -eq 0 ]; then
echo "Clang-format found."
build_path="`dirname \"$0\"`"
project_path=$build_path/../..
find $project_path/src/ -regex '.*\.\(cpp\|h\)' -exec clang-format -style=file -i {} \; -exec echo "Iteration 1: {}" \;
find $project_path/src/ -regex '.*\.\(cpp\|h\)' -exec clang-format -style=file -i {} \; -exec echo "Iteration 2: {}" \;
find $project_path/src/ -regex '.*\.\(cpp\|h\)' -exec $CLANG_FORMAT_EXE -style=file -i {} \; -exec echo "Iteration 1: {}" \;
find $project_path/src/ -regex '.*\.\(cpp\|h\)' -exec $CLANG_FORMAT_EXE -style=file -i {} \; -exec echo "Iteration 2: {}" \;
echo "DONE"
else
echo "Could not find clang-format."
echo "Could not find clang-format-10."
fi