From 0f9f95f716f7c6bfb2ac3d7f7a1631709817f56f Mon Sep 17 00:00:00 2001 From: HifiExperiments Date: Mon, 28 Dec 2020 23:46:37 -0800 Subject: [PATCH] possible fix for physics --- .../entities-renderer/src/RenderableModelEntityItem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/entities-renderer/src/RenderableModelEntityItem.cpp b/libraries/entities-renderer/src/RenderableModelEntityItem.cpp index e13ab6f8375..c694f496d61 100644 --- a/libraries/entities-renderer/src/RenderableModelEntityItem.cpp +++ b/libraries/entities-renderer/src/RenderableModelEntityItem.cpp @@ -189,9 +189,6 @@ void RenderableModelEntityItem::updateModelBounds() { glm::vec3 scale = model->getScale(); model->setUseDualQuaternionSkinning(!isNonUniformScale(scale)); model->updateRenderItems(); - - markDirtyFlags(Simulation::DIRTY_SHAPE | Simulation::DIRTY_MASS); - locationChanged(); } } @@ -1267,6 +1264,9 @@ void ModelEntityRenderer::doRenderUpdateAsynchronousTyped(const TypedEntityPoint entity->_originalTexturesRead = false; entity->_needsJointSimulation = true; entity->_needsToRescaleModel = true; + + entity->markDirtyFlags(Simulation::DIRTY_SHAPE | Simulation::DIRTY_MASS); + entity->locationChanged(); emit requestRenderUpdate(); }); scene->enqueueTransaction(transaction);