mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 06:57:37 +02:00
call locationChanged on children of joints when joints change
This commit is contained in:
parent
138125faab
commit
9a80c4d681
1 changed files with 1 additions and 0 deletions
|
@ -201,6 +201,7 @@ void Avatar::simulate(float deltaTime) {
|
||||||
_skeletonModel.getRig()->copyJointsFromJointData(_jointData);
|
_skeletonModel.getRig()->copyJointsFromJointData(_jointData);
|
||||||
_skeletonModel.simulate(deltaTime, _hasNewJointRotations || _hasNewJointTranslations);
|
_skeletonModel.simulate(deltaTime, _hasNewJointRotations || _hasNewJointTranslations);
|
||||||
simulateAttachments(deltaTime);
|
simulateAttachments(deltaTime);
|
||||||
|
locationChanged(); // joints changed, so if there are any children, update them.
|
||||||
_hasNewJointRotations = false;
|
_hasNewJointRotations = false;
|
||||||
_hasNewJointTranslations = false;
|
_hasNewJointTranslations = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue