mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 20:06:02 +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();
|
bool movingOrAnimating = isMovingRelativeToParent() || isAnimatingSomething();
|
||||||
if ((movingOrAnimating ||
|
if ((movingOrAnimating ||
|
||||||
_needsInitialSimulation ||
|
_needsInitialSimulation ||
|
||||||
|
_needsJointSimulation ||
|
||||||
_model->getTranslation() != getPosition() ||
|
_model->getTranslation() != getPosition() ||
|
||||||
_model->getScaleToFitDimensions() != getDimensions() ||
|
_model->getScaleToFitDimensions() != getDimensions() ||
|
||||||
_model->getRotation() != getRotation() ||
|
_model->getRotation() != getRotation() ||
|
||||||
|
@ -371,6 +372,7 @@ void RenderableModelEntityItem::updateModelBounds() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_needsInitialSimulation = false;
|
_needsInitialSimulation = false;
|
||||||
|
_needsJointSimulation = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -772,6 +774,7 @@ bool RenderableModelEntityItem::setAbsoluteJointRotationInObjectFrame(int index,
|
||||||
_absoluteJointRotationsInObjectFrameDirty[index] = true;
|
_absoluteJointRotationsInObjectFrameDirty[index] = true;
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
|
_needsJointSimulation = true;
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,6 +97,8 @@ private:
|
||||||
bool _showCollisionHull = false;
|
bool _showCollisionHull = false;
|
||||||
|
|
||||||
bool getAnimationFrame();
|
bool getAnimationFrame();
|
||||||
|
|
||||||
|
bool _needsJointSimulation { false };
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // hifi_RenderableModelEntityItem_h
|
#endif // hifi_RenderableModelEntityItem_h
|
||||||
|
|
Loading…
Reference in a new issue