mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
MyAvatar bids for ownerhsip on grab
This commit is contained in:
parent
3ec9290dca
commit
1bdcf8f0cb
1 changed files with 6 additions and 0 deletions
|
@ -401,6 +401,12 @@ bool Avatar::updateGrabs() {
|
|||
|
||||
if (success && target) {
|
||||
target->addGrab(grab);
|
||||
if (isMyAvatar()) {
|
||||
EntityItemPointer entity = std::dynamic_pointer_cast<EntityItem>(target);
|
||||
if (entity) {
|
||||
entity->upgradeScriptSimulationPriority(PERSONAL_SIMULATION_PRIORITY);
|
||||
}
|
||||
}
|
||||
// only clear this entry from the _changedAvatarGrabs if we found the entity.
|
||||
changeItr.remove();
|
||||
grabAddedOrRemoved = true;
|
||||
|
|
Loading…
Reference in a new issue