mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 18:23:22 +02:00
fix dynamic entities that are parented to your avatar
This commit is contained in:
parent
36aa0ae476
commit
0f3a70553c
1 changed files with 4 additions and 0 deletions
|
@ -1622,6 +1622,10 @@ void EntityItem::setParentID(const QUuid& value) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!value.isNull() && (value == Physics::getSessionUUID() || value == AVATAR_SELF_ID)) {
|
||||
newParentNoBootstrapping |= Simulation::NO_BOOTSTRAPPING;
|
||||
}
|
||||
|
||||
if ((bool)(oldParentNoBootstrapping ^ newParentNoBootstrapping)) {
|
||||
if ((bool)(newParentNoBootstrapping & Simulation::NO_BOOTSTRAPPING)) {
|
||||
markDirtyFlags(Simulation::NO_BOOTSTRAPPING);
|
||||
|
|
Loading…
Reference in a new issue