History

Merge branch 'master' of https://github.com/highfidelity/hifi into spectatorCamera_mergeable_20170619

Zach Fox committed 9 years ago

Commit cbdffce2 parents 5245237 ed6620f125 files · +682 −662Browse files

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

Unified · Split

interface/src/Application.cpp+0−19
@@ -581,7 +581,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 580 unmodified lines
581581 _undoStackScriptingInterface(&_undoStack),
582582 _entitySimulation(new PhysicalEntitySimulation()),
583583 _physicsEngine(new PhysicsEngine(Vectors::ZERO)),
584− _entityClipboardRenderer(false, this, this),
585584 _entityClipboard(new EntityTree()),
586585 _lastQueriedTime(usecTimestampNow()),
587586 _previousScriptLocation("LastScriptLocation", DESKTOP_LOCATION),
@@ -3989,11 +3988,6 @@ void Application::init() { · 3401 unmodified lines
39893988 DependencyManager::get<NodeList>()->sendDomainServerCheckIn();
39903989
39913990 getEntities()->init();
3992− {
3993− QMutexLocker viewLocker(&_viewMutex);
3994− getEntities()->setViewFrustum(_viewFrustum);
3995− }
3996−
39973991 getEntities()->setEntityLoadingPriorityFunction([this](const EntityItem& item) {
39983992 auto dims = item.getDimensions();
39993993 auto maxSize = glm::compMax(dims);
@@ -4023,13 +4017,6 @@ void Application::init() { · 23 unmodified lines
40234017 // of events related clicking, hovering over, and entering entities
40244018 getEntities()->connectSignalsToSlots(entityScriptingInterface.data());
40254019
4026− _entityClipboardRenderer.init();
4027− {
4028− QMutexLocker viewLocker(&_viewMutex);
4029− _entityClipboardRenderer.setViewFrustum(_viewFrustum);
4030− }
4031− _entityClipboardRenderer.setTree(_entityClipboard);
4032−
40334020 // Make sure any new sounds are loaded as soon as know about them.
40344021 connect(tree.get(), &EntityTree::newCollisionSoundURL, this, [this](QUrl newURL, EntityItemID id) {
40354022 EntityTreePointer tree = getEntities()->getTree();
@@ -5022,9 +5009,6 @@ QRect Application::getDesirableApplicationGeometry() const { · 986 unmodified lines
50225009 return applicationGeometry;
50235010 }
50245011
5025−// FIXME, preprocessor guard this check to occur only in DEBUG builds
5026−static QThread * activeRenderingThread = nullptr;
5027−
50285012 PickRay Application::computePickRay(float x, float y) const {
50295013 vec2 pickPoint { x, y };
50305014 PickRay result;
@@ -5095,7 +5079,6 @@ void Application::displaySide(RenderArgs* renderArgs, Camera& theCamera, bool se · 64 unmodified lines
50955079 auto myAvatar = getMyAvatar();
50965080 myAvatar->preDisplaySide(renderArgs);
50975081
5098− activeRenderingThread = QThread::currentThread();
50995082 PROFILE_RANGE(render, __FUNCTION__);
51005083 PerformanceTimer perfTimer("display");
51015084 PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings), "Application::displaySide()");
@@ -5168,8 +5151,6 @@ void Application::displaySide(RenderArgs* renderArgs, Camera& theCamera, bool se · 66 unmodified lines
51685151 // Before the deferred pass, let's try to use the render engine
51695152 _renderEngine->run();
51705153 }
5171−
5172− activeRenderingThread = nullptr;
51735154 }
51745155
51755156 void Application::resetSensors(bool andReload) {