mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:24:00 +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
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue