mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 12:54:30 +02:00
fix if else syntax
This commit is contained in:
parent
975d844eee
commit
c3f2f5779a
1 changed files with 4 additions and 6 deletions
|
@ -2361,18 +2361,16 @@ bool MyAvatar::hasDriveInput() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyAvatar::setAway(bool value) {
|
void MyAvatar::setAway(bool value) {
|
||||||
if (_isAway == value) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
_isAway = value;
|
_isAway = value;
|
||||||
if (_isAway):
|
if (_isAway) {
|
||||||
emit wentAway();
|
emit wentAway();
|
||||||
else:
|
} else {
|
||||||
emit wentActive();
|
emit wentActive();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The resulting matrix is used to render the hand controllers, even if the camera is decoupled from the avatar.
|
// The resulting matrix is used to render the hand controllers, even if the camera is decoupled from the avatar.
|
||||||
// Specifically, if we are rendering using a third person camera. We would like to render the hand controllers in front of the camera,
|
// Specificly, if we are rendering using a third person camera. We would like to render the hand controllers in front of the camera,
|
||||||
// not in front of the avatar.
|
// not in front of the avatar.
|
||||||
glm::mat4 MyAvatar::computeCameraRelativeHandControllerMatrix(const glm::mat4& controllerSensorMatrix) const {
|
glm::mat4 MyAvatar::computeCameraRelativeHandControllerMatrix(const glm::mat4& controllerSensorMatrix) const {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue