Showing the changes to assignment-client/src/entities/EntityTreeSendThread.cpp (1 of 1 file). Show all
Unified · Split
| @@ -93,8 +93,6 @@ bool EntityTreeSendThread::addAncestorsToExtraFlaggedEntities(const QUuid& filte · 92 unmodified lines | |||
| 93 | // first add it to the extra list of things we need to send | 93 | // first add it to the extra list of things we need to send |
| 94 | bool parentWasNew = nodeData.insertFlaggedExtraEntity(filteredEntityID, entityParent->getID()); | 94 | bool parentWasNew = nodeData.insertFlaggedExtraEntity(filteredEntityID, entityParent->getID()); |
| 95 | 95 | ||
| 96 | // qDebug() << "Adding" << entityParent->getID() << "which is an ancestor of" << filteredEntityID; | ||
| 97 | |||
| 98 | // now recursively call ourselves to get its ancestors added too | 96 | // now recursively call ourselves to get its ancestors added too |
| 99 | auto parentEntityItem = std::static_pointer_cast<EntityItem>(entityParent); | 97 | auto parentEntityItem = std::static_pointer_cast<EntityItem>(entityParent); |
| 100 | bool ancestorsWereNew = addAncestorsToExtraFlaggedEntities(filteredEntityID, *parentEntityItem, nodeData); | 98 | bool ancestorsWereNew = addAncestorsToExtraFlaggedEntities(filteredEntityID, *parentEntityItem, nodeData); |
| @@ -122,8 +120,6 @@ bool EntityTreeSendThread::addDescendantsToExtraFlaggedEntities(const QUuid& fil · 21 unmodified lines | |||
| 122 | // first add it to the extra list of things we need to send | 120 | // first add it to the extra list of things we need to send |
| 123 | hasNewChild |= nodeData.insertFlaggedExtraEntity(filteredEntityID, child->getID()); | 121 | hasNewChild |= nodeData.insertFlaggedExtraEntity(filteredEntityID, child->getID()); |
| 124 | 122 | ||
| 125 | // qDebug() << "Adding" << child->getID() << "which is a descendant of" << filteredEntityID; | ||
| 126 | |||
| 127 | // now recursively call ourselves to get its descendants added too | 123 | // now recursively call ourselves to get its descendants added too |
| 128 | auto childEntityItem = std::static_pointer_cast<EntityItem>(child); | 124 | auto childEntityItem = std::static_pointer_cast<EntityItem>(child); |
| 129 | hasNewDescendants |= addDescendantsToExtraFlaggedEntities(filteredEntityID, *childEntityItem, nodeData); | 125 | hasNewDescendants |= addDescendantsToExtraFlaggedEntities(filteredEntityID, *childEntityItem, nodeData); |