History

Merge branch 'master' of github.com:highfidelity/hifi into feat/avatarTools/avatarPackager

Thijs Wenker committed 7 years ago

Commit cb91a4b2 parents 20c169b 4838a9155 files · +1521 −761Browse files

Showing the changes to interface/src/Application.cpp (1 of 55 files). Show all

Unified · Split

interface/src/Application.cpp+5−8
@@ -1080,6 +1080,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1079 unmodified lines
10801080
10811081 auto nodeList = DependencyManager::get<NodeList>();
10821082 nodeList->startThread();
1083+ nodeList->setFlagTimeForConnectionStep(true);
10831084
10841085 // move the AddressManager to the NodeList thread so that domain resets due to domain changes always occur
10851086 // before we tell MyAvatar to go to a new location in the new domain
@@ -4914,7 +4915,7 @@ void Application::calibrateEyeTracker5Points() { · 3828 unmodified lines
49144915 #endif
49154916
49164917 bool Application::exportEntities(const QString& filename,
4917− const QVector<EntityItemID>& entityIDs,
4918+ const QVector<QUuid>& entityIDs,
49184919 const glm::vec3* givenOffset) {
49194920 QHash<EntityItemID, EntityItemPointer> entities;
49204921
@@ -4989,16 +4990,12 @@ bool Application::exportEntities(const QString& filename, float x, float y, floa · 68 unmodified lines
49894990 glm::vec3 minCorner = center - vec3(scale);
49904991 float cubeSize = scale * 2;
49914992 AACube boundingCube(minCorner, cubeSize);
4992− QVector<EntityItemPointer> entities;
4993− QVector<EntityItemID> ids;
4993+ QVector<QUuid> entities;
49944994 auto entityTree = getEntities()->getTree();
49954995 entityTree->withReadLock([&] {
4996− entityTree->findEntities(boundingCube, entities);
4997− foreach(EntityItemPointer entity, entities) {
4998− ids << entity->getEntityItemID();
4999− }
4996+ entityTree->evalEntitiesInCube(boundingCube, PickFilter(), entities);
50004997 });
5001− return exportEntities(filename, ids, &center);
4998+ return exportEntities(filename, entities, &center);
50024999 }
50035000
50045001 void Application::loadSettings() {