mirror of
https://github.com/overte-org/overte.git
synced 2025-08-12 23:40:00 +02:00
another AVATAR_SELF_ID adjustment
This commit is contained in:
parent
ad83f20199
commit
81bf5ee655
1 changed files with 2 additions and 1 deletions
|
@ -1828,7 +1828,8 @@ void EntityItem::computeCollisionGroupAndFinalMask(int16_t& group, int16_t& mask
|
|||
// "bootstrapping" problem where you can shoot yourself across the room by grabbing something
|
||||
// and holding it against your own avatar.
|
||||
QUuid ancestorID = findAncestorOfType(NestableType::Avatar);
|
||||
if (!ancestorID.isNull() && ancestorID == Physics::getSessionUUID()) {
|
||||
if (!ancestorID.isNull() &&
|
||||
(ancestorID == Physics::getSessionUUID() || ancestorID == AVATAR_SELF_ID)) {
|
||||
userMask &= ~USER_COLLISION_GROUP_MY_AVATAR;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue