mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:29:32 +02:00
Merge pull request #9584 from birarda/bug/freeze-dont-move
don't auto-bid for sim ownership on entity creation in ESI
This commit is contained in:
commit
1ddafa3cee
1 changed files with 0 additions and 11 deletions
|
@ -218,17 +218,6 @@ QUuid EntityScriptingInterface::addEntity(const EntityItemProperties& properties
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_bidOnSimulationOwnership) {
|
|
||||||
// This Node is creating a new object. If it's in motion, set this Node as the simulator.
|
|
||||||
auto nodeList = DependencyManager::get<NodeList>();
|
|
||||||
const QUuid myNodeID = nodeList->getSessionUUID();
|
|
||||||
|
|
||||||
// and make note of it now, so we can act on it right away.
|
|
||||||
propertiesWithSimID.setSimulationOwner(myNodeID, SCRIPT_POKE_SIMULATION_PRIORITY);
|
|
||||||
entity->setSimulationOwner(myNodeID, SCRIPT_POKE_SIMULATION_PRIORITY);
|
|
||||||
entity->rememberHasSimulationOwnershipBid();
|
|
||||||
}
|
|
||||||
|
|
||||||
entity->setLastBroadcast(usecTimestampNow());
|
entity->setLastBroadcast(usecTimestampNow());
|
||||||
propertiesWithSimID.setLastEdited(entity->getLastEdited());
|
propertiesWithSimID.setLastEdited(entity->getLastEdited());
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue