mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-20 19:40:26 +02:00
don't set _dirtyFlags if polyvox is collisionless
This commit is contained in:
parent
7a31a99e3c
commit
422b0bb952
1 changed files with 3 additions and 1 deletions
|
@ -1188,7 +1188,9 @@ void RenderablePolyVoxEntityItem::setMesh(model::MeshPointer mesh) {
|
||||||
// this catches the payload from getMesh
|
// this catches the payload from getMesh
|
||||||
bool neighborsNeedUpdate;
|
bool neighborsNeedUpdate;
|
||||||
withWriteLock([&] {
|
withWriteLock([&] {
|
||||||
_dirtyFlags |= Simulation::DIRTY_SHAPE | Simulation::DIRTY_MASS;
|
if (!_collisionless) {
|
||||||
|
_dirtyFlags |= Simulation::DIRTY_SHAPE | Simulation::DIRTY_MASS;
|
||||||
|
}
|
||||||
_mesh = mesh;
|
_mesh = mesh;
|
||||||
_meshDirty = true;
|
_meshDirty = true;
|
||||||
_meshInitialized = true;
|
_meshInitialized = true;
|
||||||
|
|
Loading…
Reference in a new issue