mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
check initialization of _needsInitialSimulation
This commit is contained in:
parent
9da6b623a3
commit
a723c748f5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue