packets should be ignore if they contain local nodeID, not if local entity contains nodeID

This commit is contained in:
Seth Alves 2015-04-20 12:19:36 -07:00
parent 08d300afcd
commit 56b005a872

View file

@ -745,7 +745,8 @@ int EntityTreeElement::readElementDataFromBuffer(const unsigned char* data, int
EntityTreeElement* currentContainingElement = _myTree->getContainingElement(entityItemID);
// this Node was the original source of this packet, so read it, but ignore it.
bool shouldIgnore = (entityItem && entityItem->getSimulatorID() == myNodeID);
// bool shouldIgnore = (entityItem && entityItem->getSimulatorID() == myNodeID); XXX
bool shouldIgnore = false;
bytesForThisEntity = entityItem->readEntityDataFromBuffer(dataAt, bytesLeftToRead, args, shouldIgnore);
if (entityItem->getDirtyFlags()) {