call simulate from setScaleInternal rather than just initJointTransforms so the scale change is visible

This commit is contained in:
Seth Alves 2016-02-19 10:05:22 -08:00
parent 01d3977bf1
commit ee5a82f9b8

View file

@ -100,7 +100,7 @@ void Model::setScaleInternal(const glm::vec3& scale) {
if (_scale.x == 0.0f || _scale.y == 0.0f || _scale.z == 0.0f) {
assert(false);
}
initJointTransforms();
simulate(0.0f, true);
}
}