History

git rid of unneeded bump code. re-indent billiards.js and rez in balls with some y velocity so they fall to the table

Seth Alves committed 11 years ago

Commit 5a7f8a21 parent 864f8cb4 files · +145 −177Browse files

Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 4 files). Show all

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+13−10
@@ -65,16 +65,19 @@ void setSimId(EntityItemProperties& propertiesWithSimID, EntityItem* entity) { · 64 unmodified lines
65 auto nodeList = DependencyManager::get<NodeList>();65 auto nodeList = DependencyManager::get<NodeList>();
66 const QUuid myNodeID = nodeList->getSessionUUID();66 const QUuid myNodeID = nodeList->getSessionUUID();
67 67
68 // if this entity has non-zero physics/simulation related values, claim simulation ownership68 // // if this entity has non-zero physics/simulation related values, claim simulation ownership
69 if (propertiesWithSimID.velocityChanged() ||69 // if (propertiesWithSimID.velocityChanged() ||
70 propertiesWithSimID.rotationChanged() ||70 // propertiesWithSimID.rotationChanged() ||
71 propertiesWithSimID.containsPositionChange()) {71 // propertiesWithSimID.containsPositionChange()) {
72 propertiesWithSimID.setSimulatorID(myNodeID);72 // propertiesWithSimID.setSimulatorID(myNodeID);
73 entity->setSimulatorID(myNodeID);73 // entity->setSimulatorID(myNodeID);
74 } else if (entity->getSimulatorID() == myNodeID) {74 // } else if (entity->getSimulatorID() == myNodeID) {
75 propertiesWithSimID.setSimulatorID(QUuid()); // give up simulation ownership75 // propertiesWithSimID.setSimulatorID(QUuid()); // give up simulation ownership
76 entity->setSimulatorID(QUuid());76 // entity->setSimulatorID(QUuid());
77 }77 // }
78
79 propertiesWithSimID.setSimulatorID(myNodeID);
80 entity->setSimulatorID(myNodeID);
78}81}
79 82
80 83