mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 19:13:38 +02:00
Merge pull request #9494 from sethalves/tablet-ui
fix near-grab to equip handoff
This commit is contained in:
commit
e0779db1ab
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