Showing the changes to interface/src/avatar/SkeletonModel.cpp (1 of 3 files). Show all
Unified · Split
| @@ -247,7 +247,10 @@ void SkeletonModel::simulate(float deltaTime, bool fullUpdate) { · 246 unmodified lines | |||
| 247 | hand->getLeftRightPalmIndices(leftPalmIndex, rightPalmIndex); | 247 | hand->getLeftRightPalmIndices(leftPalmIndex, rightPalmIndex); |
| 248 | 248 | ||
| 249 | // let rig compute the model offset | 249 | // let rig compute the model offset |
| 250 | setOffset(_rig->getModelOffset()); | 250 | glm::vec3 modelOffset; |
| 251 | if (_rig->getModelOffset(modelOffset)) { | ||
| 252 | setOffset(modelOffset); | ||
| 253 | } | ||
| 251 | 254 | ||
| 252 | // Don't Relax toward hand positions when in animGraph mode. | 255 | // Don't Relax toward hand positions when in animGraph mode. |
| 253 | if (!_rig->getEnableAnimGraph()) { | 256 | if (!_rig->getEnableAnimGraph()) { |