fix dynamic entities that are parented to your avatar

This commit is contained in:
Dante Ruiz 2017-12-06 11:18:15 -08:00
parent 36aa0ae476
commit 0f3a70553c

View file

@ -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);