mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 06:23:06 +02:00
when you unlock the transitions you now start in stand state
This commit is contained in:
parent
ee830cdcb0
commit
90c9e578c8
1 changed files with 4 additions and 0 deletions
|
@ -3904,6 +3904,10 @@ void MyAvatar::setIsSitStandStateLocked(bool isLocked) {
|
||||||
_sumUserHeightSensorSpace = DEFAULT_AVATAR_HEIGHT;
|
_sumUserHeightSensorSpace = DEFAULT_AVATAR_HEIGHT;
|
||||||
_tippingPoint = DEFAULT_FLOOR_HEIGHT;
|
_tippingPoint = DEFAULT_FLOOR_HEIGHT;
|
||||||
_averageUserHeightCount = 1;
|
_averageUserHeightCount = 1;
|
||||||
|
if (!isLocked) {
|
||||||
|
// always start the auto transition mode in standing state.
|
||||||
|
setIsInSittingState(false);
|
||||||
|
}
|
||||||
emit sitStandStateLockEnabledChanged(isLocked);
|
emit sitStandStateLockEnabledChanged(isLocked);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue