mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 05:24:06 +02:00
fix the doppelganger
This commit is contained in:
parent
984d6ae48f
commit
6c6131c7b3
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -97,6 +97,8 @@ private:
|
|||
bool _showCollisionHull = false;
|
||||
|
||||
bool getAnimationFrame();
|
||||
|
||||
bool _needsJointSimulation { false };
|
||||
};
|
||||
|
||||
#endif // hifi_RenderableModelEntityItem_h
|
||||
|
|
Loading…
Reference in a new issue