From 422b0bb952df78b51a59166e66ef3ef2f52d4a8e Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Sat, 25 Feb 2017 21:14:13 -0800 Subject: [PATCH] don't set _dirtyFlags if polyvox is collisionless --- .../entities-renderer/src/RenderablePolyVoxEntityItem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/entities-renderer/src/RenderablePolyVoxEntityItem.cpp b/libraries/entities-renderer/src/RenderablePolyVoxEntityItem.cpp index 5fe2844176..47ef598502 100644 --- a/libraries/entities-renderer/src/RenderablePolyVoxEntityItem.cpp +++ b/libraries/entities-renderer/src/RenderablePolyVoxEntityItem.cpp @@ -1188,7 +1188,9 @@ void RenderablePolyVoxEntityItem::setMesh(model::MeshPointer mesh) { // this catches the payload from getMesh bool neighborsNeedUpdate; withWriteLock([&] { - _dirtyFlags |= Simulation::DIRTY_SHAPE | Simulation::DIRTY_MASS; + if (!_collisionless) { + _dirtyFlags |= Simulation::DIRTY_SHAPE | Simulation::DIRTY_MASS; + } _mesh = mesh; _meshDirty = true; _meshInitialized = true;