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
6565 auto nodeList = DependencyManager::get<NodeList>();
6666 const QUuid myNodeID = nodeList->getSessionUUID();
6767
68− // if this entity has non-zero physics/simulation related values, claim simulation ownership
69− if (propertiesWithSimID.velocityChanged() ||
70− propertiesWithSimID.rotationChanged() ||
71− propertiesWithSimID.containsPositionChange()) {
72− propertiesWithSimID.setSimulatorID(myNodeID);
73− entity->setSimulatorID(myNodeID);
74− } else if (entity->getSimulatorID() == myNodeID) {
75− propertiesWithSimID.setSimulatorID(QUuid()); // give up simulation ownership
76− entity->setSimulatorID(QUuid());
77− }
68+ // // if this entity has non-zero physics/simulation related values, claim simulation ownership
69+ // if (propertiesWithSimID.velocityChanged() ||
70+ // propertiesWithSimID.rotationChanged() ||
71+ // propertiesWithSimID.containsPositionChange()) {
72+ // propertiesWithSimID.setSimulatorID(myNodeID);
73+ // entity->setSimulatorID(myNodeID);
74+ // } else if (entity->getSimulatorID() == myNodeID) {
75+ // propertiesWithSimID.setSimulatorID(QUuid()); // give up simulation ownership
76+ // entity->setSimulatorID(QUuid());
77+ // }
78+
79+ propertiesWithSimID.setSimulatorID(myNodeID);
80+ entity->setSimulatorID(myNodeID);
7881 }
7982
8083