fix the doppelganger

This commit is contained in:
Brad Hefta-Gaub 2016-03-25 11:22:54 -07:00
parent 984d6ae48f
commit 6c6131c7b3
2 changed files with 5 additions and 0 deletions

View file

@ -354,6 +354,7 @@ void RenderableModelEntityItem::updateModelBounds() {
bool movingOrAnimating = isMovingRelativeToParent() || isAnimatingSomething();
if ((movingOrAnimating ||
_needsInitialSimulation ||
_needsJointSimulation ||
_model->getTranslation() != getPosition() ||
_model->getScaleToFitDimensions() != getDimensions() ||
_model->getRotation() != getRotation() ||
@ -371,6 +372,7 @@ void RenderableModelEntityItem::updateModelBounds() {
}
_needsInitialSimulation = false;
_needsJointSimulation = false;
}
}
@ -772,6 +774,7 @@ bool RenderableModelEntityItem::setAbsoluteJointRotationInObjectFrame(int index,
_absoluteJointRotationsInObjectFrameDirty[index] = true;
result = true;
}
_needsJointSimulation = true;
});
return result;
}

View file

@ -97,6 +97,8 @@ private:
bool _showCollisionHull = false;
bool getAnimationFrame();
bool _needsJointSimulation { false };
};
#endif // hifi_RenderableModelEntityItem_h