mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 13:33:38 +02:00
making small adjustments
This commit is contained in:
parent
1fec900ba6
commit
3cf36bed55
1 changed files with 2 additions and 1 deletions
|
@ -685,7 +685,8 @@ void MyAvatar::simulate(float deltaTime) {
|
|||
entityTree->recurseTreeWithOperator(&moveOperator);
|
||||
}
|
||||
});
|
||||
_characterController.setFlyingAllowed(zoneAllowsFlying && _enableFlying);
|
||||
bool isPhysicsEnabled = qApp->isPhysicsEnabled();
|
||||
_characterController.setFlyingAllowed(zoneAllowsFlying && (_enableFlying || !isPhysicsEnabled));
|
||||
_characterController.setCollisionlessAllowed(collisionlessAllowed);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue