Merge pull request #4678 from sethalves/fix-pile-at-origin

don't pile things up at the origin during a load
This commit is contained in:
Brad Hefta-Gaub 2015-04-23 11:40:46 -07:00
commit 945433be28

View file

@ -621,7 +621,7 @@ int EntityItem::readEntityDataFromBuffer(const unsigned char* data, int bytesLef
auto nodeList = DependencyManager::get<NodeList>();
const QUuid& myNodeID = nodeList->getSessionUUID();
if (_simulatorID == myNodeID) {
if (_simulatorID == myNodeID && !_simulatorID.isNull()) {
// the packet that produced this bitstream originally came from physics simulations performed by
// this node, so our version has to be newer than what the packet contained.
_position = savePosition;