Skip to content

Commit 165537a

Browse files
authored
Merge pull request #944 from HifiExperiments/physicsFix
Possible fix for bad physics performance
2 parents f894a0a + 0f9f95f commit 165537a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/entities-renderer/src/RenderableModelEntityItem.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,6 @@ void RenderableModelEntityItem::updateModelBounds() {
189189
glm::vec3 scale = model->getScale();
190190
model->setUseDualQuaternionSkinning(!isNonUniformScale(scale));
191191
model->updateRenderItems();
192-
193-
markDirtyFlags(Simulation::DIRTY_SHAPE | Simulation::DIRTY_MASS);
194-
locationChanged();
195192
}
196193
}
197194

@@ -1267,6 +1264,9 @@ void ModelEntityRenderer::doRenderUpdateAsynchronousTyped(const TypedEntityPoint
12671264
entity->_originalTexturesRead = false;
12681265
entity->_needsJointSimulation = true;
12691266
entity->_needsToRescaleModel = true;
1267+
1268+
entity->markDirtyFlags(Simulation::DIRTY_SHAPE | Simulation::DIRTY_MASS);
1269+
entity->locationChanged();
12701270
emit requestRenderUpdate();
12711271
});
12721272
scene->enqueueTransaction(transaction);

0 commit comments

Comments
 (0)