History

remove debug option for disabling physics updates

Andrew Meadows committed 10 years ago

Commit ab6367f1 parent 2c886656 files · +14 −62Browse files

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

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+5−14
@@ -167,8 +167,8 @@ QUuid EntityScriptingInterface::editEntity(QUuid id, EntityItemProperties proper · 166 unmodified lines
167167 if (hasTerseUpdateChanges) {
168168 entity->getAllTerseUpdateProperties(properties);
169169 }
170− // TODO: if we knew that ONLY TerseUpdate properties have changed in properties AND the object
171− // is dynamic AND it is active in the physics simulation then we could chose to NOT queue an update
170+ // TODO: if we knew that ONLY TerseUpdate properties have changed in properties AND the object
171+ // is dynamic AND it is active in the physics simulation then we could chose to NOT queue an update
172172 // and instead let the physics simulation decide when to send a terse update. This would remove
173173 // the "slide-no-rotate" glitch (and typical a double-update) that we see during the "poke rolling
174174 // balls" test. However, even if we solve this problem we still need to provide a "slerp the visible
@@ -333,15 +333,6 @@ bool EntityScriptingInterface::getDrawZoneBoundaries() const { · 158 unmodified lines
333333 return ZoneEntityItem::getDrawZoneBoundaries();
334334 }
335335
336−void EntityScriptingInterface::setSendPhysicsUpdates(bool value) {
337− EntityItem::setSendPhysicsUpdates(value);
338−}
339−
340−bool EntityScriptingInterface::getSendPhysicsUpdates() const {
341− return EntityItem::getSendPhysicsUpdates();
342−}
343−
344−
345336 RayToEntityIntersectionResult::RayToEntityIntersectionResult() :
346337 intersects(false),
347338 accurate(true), // assume it's accurate
@@ -548,16 +539,16 @@ bool EntityScriptingInterface::appendPoint(QUuid entityID, const glm::vec3& poin · 200 unmodified lines
548539 if (!entity) {
549540 qCDebug(entities) << "EntityScriptingInterface::setPoints no entity with ID" << entityID;
550541 }
551−
542+
552543 EntityTypes::EntityType entityType = entity->getType();
553−
544+
554545 if (entityType == EntityTypes::Line) {
555546 return setPoints(entityID, [point](LineEntityItem& lineEntity) -> bool
556547 {
557548 return (LineEntityItem*)lineEntity.appendPoint(point);
558549 });
559550 }
560−
551+
561552 return false;
562553 }
563554