History

Merge howard/rig into andrew/caesium

Andrew Meadows committed 11 years ago

Commit 2c66af62 parents 0a5ada3 475461551 files · +2561 −305Browse files

Showing the changes to libraries/render-utils/src/Model.cpp (1 of 51 files). Show all

Unified · Split

libraries/render-utils/src/Model.cpp+5−1
@@ -1325,12 +1325,16 @@ void Model::simulate(float deltaTime, bool fullUpdate) { · 1324 unmodified lines
13251325 }
13261326 }
13271327
1328+//virtual
1329+void Model::updateRig(float deltaTime, glm::mat4 parentTransform) {
1330+ _rig->updateAnimations(deltaTime, parentTransform);
1331+}
13281332 void Model::simulateInternal(float deltaTime) {
13291333 // update the world space transforms for all joints
13301334
13311335 const FBXGeometry& geometry = _geometry->getFBXGeometry();
13321336 glm::mat4 parentTransform = glm::scale(_scale) * glm::translate(_offset) * geometry.offset;
1333− _rig->simulateInternal(deltaTime, parentTransform, getTranslation(), getRotation());
1337+ updateRig(deltaTime, parentTransform);
13341338
13351339 glm::mat4 modelToWorld = glm::mat4_cast(_rotation);
13361340 for (int i = 0; i < _meshStates.size(); i++) {