check initialization of _needsInitialSimulation

This commit is contained in:
Andrew Meadows 2015-01-30 18:08:00 -08:00
parent 9da6b623a3
commit a723c748f5

View file

@ -149,7 +149,7 @@ void RenderableModelEntityItem::render(RenderArgs* args) {
glm::quat rotation = getRotation();
bool movingOrAnimating = isMoving() || isAnimatingSomething();
if (movingOrAnimating && _model->isActive()) {
if ((movingOrAnimating || _needsInitialSimulation) && _model->isActive()) {
_model->setScaleToFit(true, dimensions);
_model->setSnapModelToRegistrationPoint(true, getRegistrationPoint());
_model->setRotation(rotation);