mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 10:48:15 +02:00
remove commented out code
This commit is contained in:
parent
5a7f8a2f5a
commit
d51f5a0ae8
1 changed files with 0 additions and 12 deletions
|
@ -64,18 +64,6 @@ void EntityScriptingInterface::setEntityTree(EntityTree* modelTree) {
|
||||||
void setSimId(EntityItemProperties& propertiesWithSimID, EntityItem* entity) {
|
void setSimId(EntityItemProperties& propertiesWithSimID, EntityItem* entity) {
|
||||||
auto nodeList = DependencyManager::get<NodeList>();
|
auto nodeList = DependencyManager::get<NodeList>();
|
||||||
const QUuid myNodeID = nodeList->getSessionUUID();
|
const QUuid myNodeID = nodeList->getSessionUUID();
|
||||||
|
|
||||||
// // if this entity has non-zero physics/simulation related values, claim simulation ownership
|
|
||||||
// if (propertiesWithSimID.velocityChanged() ||
|
|
||||||
// propertiesWithSimID.rotationChanged() ||
|
|
||||||
// propertiesWithSimID.containsPositionChange()) {
|
|
||||||
// propertiesWithSimID.setSimulatorID(myNodeID);
|
|
||||||
// entity->setSimulatorID(myNodeID);
|
|
||||||
// } else if (entity->getSimulatorID() == myNodeID) {
|
|
||||||
// propertiesWithSimID.setSimulatorID(QUuid()); // give up simulation ownership
|
|
||||||
// entity->setSimulatorID(QUuid());
|
|
||||||
// }
|
|
||||||
|
|
||||||
propertiesWithSimID.setSimulatorID(myNodeID);
|
propertiesWithSimID.setSimulatorID(myNodeID);
|
||||||
entity->setSimulatorID(myNodeID);
|
entity->setSimulatorID(myNodeID);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue