mirror of
https://github.com/lubosz/overte.git
synced 2025-08-04 12:43:30 +02:00
possible fix for physics
This commit is contained in:
parent
f894a0a141
commit
0f9f95f716
1 changed files with 3 additions and 3 deletions
|
@ -189,9 +189,6 @@ void RenderableModelEntityItem::updateModelBounds() {
|
||||||
glm::vec3 scale = model->getScale();
|
glm::vec3 scale = model->getScale();
|
||||||
model->setUseDualQuaternionSkinning(!isNonUniformScale(scale));
|
model->setUseDualQuaternionSkinning(!isNonUniformScale(scale));
|
||||||
model->updateRenderItems();
|
model->updateRenderItems();
|
||||||
|
|
||||||
markDirtyFlags(Simulation::DIRTY_SHAPE | Simulation::DIRTY_MASS);
|
|
||||||
locationChanged();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1267,6 +1264,9 @@ void ModelEntityRenderer::doRenderUpdateAsynchronousTyped(const TypedEntityPoint
|
||||||
entity->_originalTexturesRead = false;
|
entity->_originalTexturesRead = false;
|
||||||
entity->_needsJointSimulation = true;
|
entity->_needsJointSimulation = true;
|
||||||
entity->_needsToRescaleModel = true;
|
entity->_needsToRescaleModel = true;
|
||||||
|
|
||||||
|
entity->markDirtyFlags(Simulation::DIRTY_SHAPE | Simulation::DIRTY_MASS);
|
||||||
|
entity->locationChanged();
|
||||||
emit requestRenderUpdate();
|
emit requestRenderUpdate();
|
||||||
});
|
});
|
||||||
scene->enqueueTransaction(transaction);
|
scene->enqueueTransaction(transaction);
|
||||||
|
|
Loading…
Reference in a new issue