mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 03:22:27 +02:00
andrews CR feedback
This commit is contained in:
parent
76c5bd1ab7
commit
c92e7bed87
4 changed files with 4 additions and 9 deletions
|
@ -11,8 +11,6 @@
|
|||
|
||||
#include <GlowEffect.h>
|
||||
|
||||
#include "../../Menu.h"
|
||||
|
||||
#include "ModelOverlay.h"
|
||||
|
||||
ModelOverlay::ModelOverlay()
|
||||
|
|
|
@ -87,6 +87,9 @@ EntityItem::~EntityItem() {
|
|||
assert(!_simulated);
|
||||
assert(!_element);
|
||||
assert(!_physicsInfo);
|
||||
|
||||
qDebug() << "EntityItem::~EntityItem()";
|
||||
debugDump();
|
||||
}
|
||||
|
||||
EntityPropertyFlags EntityItem::getEntityProperties(EncodeBitstreamParams& params) const {
|
||||
|
|
|
@ -375,9 +375,6 @@ void EntityTree::processRemovedEntities(const DeleteEntityOperator& theOperator)
|
|||
if (_simulation) {
|
||||
_simulation->removeEntity(theEntity);
|
||||
}
|
||||
|
||||
// FIX ME!!!
|
||||
//delete theEntity; // we can delete the entity immediately
|
||||
}
|
||||
if (_simulation) {
|
||||
_simulation->unlock();
|
||||
|
@ -675,11 +672,11 @@ void EntityTree::update() {
|
|||
// translate into list of ID's
|
||||
QSet<EntityItemID> idsToDelete;
|
||||
|
||||
// NOTE: TEST ME!!
|
||||
for (auto entity : pendingDeletes) {
|
||||
assert(!entity->getPhysicsInfo()); // TODO: Andrew to remove this after testing
|
||||
idsToDelete.insert(entity->getEntityItemID());
|
||||
}
|
||||
|
||||
// delete these things the roundabout way
|
||||
deleteEntities(idsToDelete, true);
|
||||
}
|
||||
|
@ -1007,7 +1004,6 @@ bool EntityTree::sendEntitiesOperation(OctreeElement* element, void* extraData)
|
|||
SendEntitiesOperationArgs* args = static_cast<SendEntitiesOperationArgs*>(extraData);
|
||||
EntityTreeElement* entityTreeElement = static_cast<EntityTreeElement*>(element);
|
||||
|
||||
//const QList<EntityItemPointer>& entities = entityTreeElement->getEntities();
|
||||
const EntityItems& entities = entityTreeElement->getEntities();
|
||||
for (int i = 0; i < entities.size(); i++) {
|
||||
EntityItemID newID(QUuid::createUuid());
|
||||
|
|
|
@ -390,7 +390,6 @@ void EntityTests::entityTreeTests(bool verbose) {
|
|||
} else {
|
||||
if (extraVerbose) {
|
||||
qDebug() << "FAILED - Test" << testsTaken <<":" << qPrintable(testName) << "iteration:" << i
|
||||
//<< "foundEntityByID=" << foundEntityByID
|
||||
<< "containingElement=" << containingElement;
|
||||
}
|
||||
}
|
||||
|
@ -470,7 +469,6 @@ void EntityTests::entityTreeTests(bool verbose) {
|
|||
} else {
|
||||
if (extraVerbose) {
|
||||
qDebug() << "FAILED - Test" << testsTaken <<":" << qPrintable(testName) << "iteration:" << i
|
||||
//<< "foundEntityByID=" << foundEntityByID
|
||||
<< "containingElement=" << containingElement;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue