mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
fix near-grab to equip handoff
This commit is contained in:
parent
48898f41b2
commit
df9bc91f01
1 changed files with 5 additions and 0 deletions
|
@ -235,6 +235,11 @@ void AvatarActionHold::doKinematicUpdate(float deltaTimeStep) {
|
|||
qDebug() << "AvatarActionHold::doKinematicUpdate -- no owning entity";
|
||||
return;
|
||||
}
|
||||
if (ownerEntity->getParentID() != QUuid()) {
|
||||
// if the held entity has been given a parent, stop acting on it.
|
||||
return;
|
||||
}
|
||||
|
||||
void* physicsInfo = ownerEntity->getPhysicsInfo();
|
||||
if (!physicsInfo) {
|
||||
qDebug() << "AvatarActionHold::doKinematicUpdate -- no owning physics info";
|
||||
|
|
Loading…
Reference in a new issue