Showing the changes to interface/src/Application.cpp (1 of 30 files). Show all
Unified · Split
| @@ -94,6 +94,7 @@ · 93 unmodified lines | |||
| 94 | #include "Menu.h" | 94 | #include "Menu.h" |
| 95 | #include "ModelPackager.h" | 95 | #include "ModelPackager.h" |
| 96 | #include "Util.h" | 96 | #include "Util.h" |
| 97 | #include "InterfaceLogging.h" | ||
| 97 | 98 | ||
| 98 | #include "avatar/AvatarManager.h" | 99 | #include "avatar/AvatarManager.h" |
| 99 | 100 | ||
| @@ -330,7 +331,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 230 unmodified lines | |||
| 330 | 331 | ||
| 331 | _applicationStartupTime = startup_time; | 332 | _applicationStartupTime = startup_time; |
| 332 | 333 | ||
| 333 | qDebug() << "[VERSION] Build sequence: " << qPrintable(applicationVersion()); | 334 | qCDebug(interface) << "[VERSION] Build sequence: " << qPrintable(applicationVersion()); |
| 334 | 335 | ||
| 335 | _bookmarks = new Bookmarks(); // Before setting up the menu | 336 | _bookmarks = new Bookmarks(); // Before setting up the menu |
| 336 | 337 | ||
| @@ -528,7 +529,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 191 unmodified lines | |||
| 528 | 529 | ||
| 529 | // check first run... | 530 | // check first run... |
| 530 | if (_firstRun.get()) { | 531 | if (_firstRun.get()) { |
| 531 | qDebug() << "This is a first run..."; | 532 | qCDebug(interface) << "This is a first run..."; |
| 532 | // clear the scripts, and set out script to our default scripts | 533 | // clear the scripts, and set out script to our default scripts |
| 533 | clearScriptsBeforeRunning(); | 534 | clearScriptsBeforeRunning(); |
| 534 | loadScript(DEFAULT_SCRIPTS_JS_URL); | 535 | loadScript(DEFAULT_SCRIPTS_JS_URL); |
| @@ -649,7 +650,7 @@ Application::~Application() { · 114 unmodified lines | |||
| 649 | } | 650 | } |
| 650 | 651 | ||
| 651 | void Application::initializeGL() { | 652 | void Application::initializeGL() { |
| 652 | qDebug() << "Created Display Window."; | 653 | qCDebug(interface) << "Created Display Window."; |
| 653 | 654 | ||
| 654 | // initialize glut for shape drawing; Qt apparently initializes it on OS X | 655 | // initialize glut for shape drawing; Qt apparently initializes it on OS X |
| 655 | #ifndef __APPLE__ | 656 | #ifndef __APPLE__ |
| @@ -661,22 +662,22 @@ void Application::initializeGL() { · 5 unmodified lines | |||
| 661 | } | 662 | } |
| 662 | #endif | 663 | #endif |
| 663 | 664 | ||
| 664 | qDebug() << "GL Version: " << QString((const char*) glGetString(GL_VERSION)); | 665 | qCDebug(interface) << "GL Version: " << QString((const char*) glGetString(GL_VERSION)); |
| 665 | qDebug() << "GL Shader Language Version: " << QString((const char*) glGetString(GL_SHADING_LANGUAGE_VERSION)); | 666 | qCDebug(interface) << "GL Shader Language Version: " << QString((const char*) glGetString(GL_SHADING_LANGUAGE_VERSION)); |
| 666 | qDebug() << "GL Vendor: " << QString((const char*) glGetString(GL_VENDOR)); | 667 | qCDebug(interface) << "GL Vendor: " << QString((const char*) glGetString(GL_VENDOR)); |
| 667 | qDebug() << "GL Renderer: " << QString((const char*) glGetString(GL_RENDERER)); | 668 | qCDebug(interface) << "GL Renderer: " << QString((const char*) glGetString(GL_RENDERER)); |
| 668 | 669 | ||
| 669 | #ifdef WIN32 | 670 | #ifdef WIN32 |
| 670 | GLenum err = glewInit(); | 671 | GLenum err = glewInit(); |
| 671 | if (GLEW_OK != err) { | 672 | if (GLEW_OK != err) { |
| 672 | /* Problem: glewInit failed, something is seriously wrong. */ | 673 | /* Problem: glewInit failed, something is seriously wrong. */ |
| 673 | qDebug("Error: %s\n", glewGetErrorString(err)); | 674 | qCDebug(interface, "Error: %s\n", glewGetErrorString(err)); |
| 674 | } | 675 | } |
| 675 | qDebug("Status: Using GLEW %s\n", glewGetString(GLEW_VERSION)); | 676 | qCDebug(interface, "Status: Using GLEW %s\n", glewGetString(GLEW_VERSION)); |
| 676 | 677 | ||
| 677 | if (wglewGetExtension("WGL_EXT_swap_control")) { | 678 | if (wglewGetExtension("WGL_EXT_swap_control")) { |
| 678 | int swapInterval = wglGetSwapIntervalEXT(); | 679 | int swapInterval = wglGetSwapIntervalEXT(); |
| 679 | qDebug("V-Sync is %s\n", (swapInterval > 0 ? "ON" : "OFF")); | 680 | qCDebug(interface, "V-Sync is %s\n", (swapInterval > 0 ? "ON" : "OFF")); |
| 680 | } | 681 | } |
| 681 | #endif | 682 | #endif |
| 682 | 683 | ||
| @@ -684,15 +685,15 @@ void Application::initializeGL() { · 1 unmodified line | |||
| 684 | // TODO: Write the correct code for Linux... | 685 | // TODO: Write the correct code for Linux... |
| 685 | /* if (wglewGetExtension("WGL_EXT_swap_control")) { | 686 | /* if (wglewGetExtension("WGL_EXT_swap_control")) { |
| 686 | int swapInterval = wglGetSwapIntervalEXT(); | 687 | int swapInterval = wglGetSwapIntervalEXT(); |
| 687 | qDebug("V-Sync is %s\n", (swapInterval > 0 ? "ON" : "OFF")); | 688 | qCDebug(interface, "V-Sync is %s\n", (swapInterval > 0 ? "ON" : "OFF")); |
| 688 | }*/ | 689 | }*/ |
| 689 | #endif | 690 | #endif |
| 690 | 691 | ||
| 691 | initDisplay(); | 692 | initDisplay(); |
| 692 | qDebug( "Initialized Display."); | 693 | qCDebug(interface, "Initialized Display."); |
| 693 | 694 | ||
| 694 | init(); | 695 | init(); |
| 695 | qDebug( "init() complete."); | 696 | qCDebug(interface, "init() complete."); |
| 696 | 697 | ||
| 697 | // create thread for parsing of octee data independent of the main network and rendering threads | 698 | // create thread for parsing of octee data independent of the main network and rendering threads |
| 698 | _octreeProcessor.initialize(_enableProcessOctreeThread); | 699 | _octreeProcessor.initialize(_enableProcessOctreeThread); |
| @@ -713,7 +714,7 @@ void Application::initializeGL() { · 14 unmodified lines | |||
| 713 | if (_justStarted) { | 714 | if (_justStarted) { |
| 714 | float startupTime = (float)_applicationStartupTime.elapsed() / 1000.0; | 715 | float startupTime = (float)_applicationStartupTime.elapsed() / 1000.0; |
| 715 | _justStarted = false; | 716 | _justStarted = false; |
| 716 | qDebug("Startup time: %4.2f seconds.", startupTime); | 717 | qCDebug(interface, "Startup time: %4.2f seconds.", startupTime); |
| 717 | } | 718 | } |
| 718 | 719 | ||
| 719 | // update before the first render | 720 | // update before the first render |
| @@ -1800,7 +1801,7 @@ bool Application::exportEntities(const QString& filename, float x, float y, floa · 1080 unmodified lines | |||
| 1800 | } | 1801 | } |
| 1801 | exportTree.writeToSVOFile(filename.toLocal8Bit().constData()); | 1802 | exportTree.writeToSVOFile(filename.toLocal8Bit().constData()); |
| 1802 | } else { | 1803 | } else { |
| 1803 | qDebug() << "No models were selected"; | 1804 | qCDebug(interface) << "No models were selected"; |
| 1804 | return false; | 1805 | return false; |
| 1805 | } | 1806 | } |
| 1806 | 1807 | ||
| @@ -1898,7 +1899,7 @@ void Application::init() { · 91 unmodified lines | |||
| 1898 | 1899 | ||
| 1899 | DependencyManager::get<AddressManager>()->loadSettings(addressLookupString); | 1900 | DependencyManager::get<AddressManager>()->loadSettings(addressLookupString); |
| 1900 | 1901 | ||
| 1901 | qDebug() << "Loaded settings"; | 1902 | qCDebug(interface) << "Loaded settings"; |
| 1902 | 1903 | ||
| 1903 | #ifdef __APPLE__ | 1904 | #ifdef __APPLE__ |
| 1904 | if (Menu::getInstance()->isOptionChecked(MenuOption::SixenseEnabled)) { | 1905 | if (Menu::getInstance()->isOptionChecked(MenuOption::SixenseEnabled)) { |
| @@ -2379,7 +2380,7 @@ int Application::sendNackPackets() { · 474 unmodified lines | |||
| 2379 | 2380 | ||
| 2380 | void Application::queryOctree(NodeType_t serverType, PacketType packetType, NodeToJurisdictionMap& jurisdictions) { | 2381 | void Application::queryOctree(NodeType_t serverType, PacketType packetType, NodeToJurisdictionMap& jurisdictions) { |
| 2381 | 2382 | ||
| 2382 | //qDebug() << ">>> inside... queryOctree()... _viewFrustum.getFieldOfView()=" << _viewFrustum.getFieldOfView(); | 2383 | //qCDebug(interface) << ">>> inside... queryOctree()... _viewFrustum.getFieldOfView()=" << _viewFrustum.getFieldOfView(); |
| 2383 | bool wantExtraDebugging = getLogger()->extraDebugging(); | 2384 | bool wantExtraDebugging = getLogger()->extraDebugging(); |
| 2384 | 2385 | ||
| 2385 | // These will be the same for all servers, so we can set them up once and then reuse for each server we send to. | 2386 | // These will be the same for all servers, so we can set them up once and then reuse for each server we send to. |
| @@ -2442,7 +2443,7 @@ void Application::queryOctree(NodeType_t serverType, PacketType packetType, Node · 56 unmodified lines | |||
| 2442 | }); | 2443 | }); |
| 2443 | 2444 | ||
| 2444 | if (wantExtraDebugging) { | 2445 | if (wantExtraDebugging) { |
| 2445 | qDebug("Servers: total %d, in view %d, unknown jurisdiction %d", | 2446 | qCDebug(interface, "Servers: total %d, in view %d, unknown jurisdiction %d", |
| 2446 | totalServers, inViewServers, unknownJurisdictionServers); | 2447 | totalServers, inViewServers, unknownJurisdictionServers); |
| 2447 | } | 2448 | } |
| 2448 | 2449 | ||
| @@ -2463,7 +2464,7 @@ void Application::queryOctree(NodeType_t serverType, PacketType packetType, Node · 14 unmodified lines | |||
| 2463 | } | 2464 | } |
| 2464 | 2465 | ||
| 2465 | if (wantExtraDebugging) { | 2466 | if (wantExtraDebugging) { |
| 2466 | qDebug("perServerPPS: %d perUnknownServer: %d", perServerPPS, perUnknownServer); | 2467 | qCDebug(interface, "perServerPPS: %d perUnknownServer: %d", perServerPPS, perUnknownServer); |
| 2467 | } | 2468 | } |
| 2468 | 2469 | ||
| 2469 | nodeList->eachNode([&](const SharedNodePointer& node){ | 2470 | nodeList->eachNode([&](const SharedNodePointer& node){ |
| @@ -2482,7 +2483,7 @@ void Application::queryOctree(NodeType_t serverType, PacketType packetType, Node · 12 unmodified lines | |||
| 2482 | if (jurisdictions.find(nodeUUID) == jurisdictions.end()) { | 2483 | if (jurisdictions.find(nodeUUID) == jurisdictions.end()) { |
| 2483 | unknownView = true; // assume it's in view | 2484 | unknownView = true; // assume it's in view |
| 2484 | if (wantExtraDebugging) { | 2485 | if (wantExtraDebugging) { |
| 2485 | qDebug() << "no known jurisdiction for node " << *node << ", assume it's visible."; | 2486 | qCDebug(interface) << "no known jurisdiction for node " << *node << ", assume it's visible."; |
| 2486 | } | 2487 | } |
| 2487 | } else { | 2488 | } else { |
| 2488 | const JurisdictionMap& map = (jurisdictions)[nodeUUID]; | 2489 | const JurisdictionMap& map = (jurisdictions)[nodeUUID]; |
| @@ -2502,7 +2503,7 @@ void Application::queryOctree(NodeType_t serverType, PacketType packetType, Node · 13 unmodified lines | |||
| 2502 | } | 2503 | } |
| 2503 | } else { | 2504 | } else { |
| 2504 | if (wantExtraDebugging) { | 2505 | if (wantExtraDebugging) { |
| 2505 | qDebug() << "Jurisdiction without RootCode for node " << *node << ". That's unusual!"; | 2506 | qCDebug(interface) << "Jurisdiction without RootCode for node " << *node << ". That's unusual!"; |
| 2506 | } | 2507 | } |
| 2507 | } | 2508 | } |
| 2508 | } | 2509 | } |
| @@ -2511,7 +2512,7 @@ void Application::queryOctree(NodeType_t serverType, PacketType packetType, Node · 2 unmodified lines | |||
| 2511 | _octreeQuery.setMaxOctreePacketsPerSecond(perServerPPS); | 2512 | _octreeQuery.setMaxOctreePacketsPerSecond(perServerPPS); |
| 2512 | } else if (unknownView) { | 2513 | } else if (unknownView) { |
| 2513 | if (wantExtraDebugging) { | 2514 | if (wantExtraDebugging) { |
| 2514 | qDebug() << "no known jurisdiction for node " << *node << ", give it budget of " | 2515 | qCDebug(interface) << "no known jurisdiction for node " << *node << ", give it budget of " |
| 2515 | << perUnknownServer << " to send us jurisdiction."; | 2516 | << perUnknownServer << " to send us jurisdiction."; |
| 2516 | } | 2517 | } |
| 2517 | 2518 | ||
| @@ -2525,11 +2526,11 @@ void Application::queryOctree(NodeType_t serverType, PacketType packetType, Node · 7 unmodified lines | |||
| 2525 | _octreeQuery.setCameraNearClip(0.1f); | 2526 | _octreeQuery.setCameraNearClip(0.1f); |
| 2526 | _octreeQuery.setCameraFarClip(0.1f); | 2527 | _octreeQuery.setCameraFarClip(0.1f); |
| 2527 | if (wantExtraDebugging) { | 2528 | if (wantExtraDebugging) { |
| 2528 | qDebug() << "Using 'minimal' camera position for node" << *node; | 2529 | qCDebug(interface) << "Using 'minimal' camera position for node" << *node; |
| 2529 | } | 2530 | } |
| 2530 | } else { | 2531 | } else { |
| 2531 | if (wantExtraDebugging) { | 2532 | if (wantExtraDebugging) { |
| 2532 | qDebug() << "Using regular camera position for node" << *node; | 2533 | qCDebug(interface) << "Using regular camera position for node" << *node; |
| 2533 | } | 2534 | } |
| 2534 | } | 2535 | } |
| 2535 | _octreeQuery.setMaxOctreePacketsPerSecond(perUnknownServer); | 2536 | _octreeQuery.setMaxOctreePacketsPerSecond(perUnknownServer); |
| @@ -3296,13 +3297,13 @@ void Application::updateWindowTitle(){ · 760 unmodified lines | |||
| 3296 | 3297 | ||
| 3297 | #ifndef WIN32 | 3298 | #ifndef WIN32 |
| 3298 | // crashes with vs2013/win32 | 3299 | // crashes with vs2013/win32 |
| 3299 | qDebug("Application title set to: %s", title.toStdString().c_str()); | 3300 | qCDebug(interface, "Application title set to: %s", title.toStdString().c_str()); |
| 3300 | #endif | 3301 | #endif |
| 3301 | _window->setWindowTitle(title); | 3302 | _window->setWindowTitle(title); |
| 3302 | } | 3303 | } |
| 3303 | 3304 | ||
| 3304 | void Application::clearDomainOctreeDetails() { | 3305 | void Application::clearDomainOctreeDetails() { |
| 3305 | qDebug() << "Clearing domain octree details..."; | 3306 | qCDebug(interface) << "Clearing domain octree details..."; |
| 3306 | // reset the environment so that we don't erroneously end up with multiple | 3307 | // reset the environment so that we don't erroneously end up with multiple |
| 3307 | _environment.resetToDefault(); | 3308 | _environment.resetToDefault(); |
| 3308 | 3309 | ||
| @@ -3374,7 +3375,7 @@ void Application::nodeKilled(SharedNodePointer node) { · 65 unmodified lines | |||
| 3374 | voxelDetailsForCode(rootCode, rootDetails); | 3375 | voxelDetailsForCode(rootCode, rootDetails); |
| 3375 | _entityServerJurisdictions.unlock(); | 3376 | _entityServerJurisdictions.unlock(); |
| 3376 | 3377 | ||
| 3377 | qDebug("model server going away...... v[%f, %f, %f, %f]", | 3378 | qCDebug(interface, "model server going away...... v[%f, %f, %f, %f]", |
| 3378 | rootDetails.x, rootDetails.y, rootDetails.z, rootDetails.s); | 3379 | rootDetails.x, rootDetails.y, rootDetails.z, rootDetails.s); |
| 3379 | 3380 | ||
| 3380 | // Add the jurisditionDetails object to the list of "fade outs" | 3381 | // Add the jurisditionDetails object to the list of "fade outs" |
| @@ -3460,7 +3461,7 @@ int Application::parseOctreeStats(const QByteArray& packet, const SharedNodePoin · 79 unmodified lines | |||
| 3460 | if (jurisdiction->find(nodeUUID) == jurisdiction->end()) { | 3461 | if (jurisdiction->find(nodeUUID) == jurisdiction->end()) { |
| 3461 | jurisdiction->unlock(); | 3462 | jurisdiction->unlock(); |
| 3462 | 3463 | ||
| 3463 | qDebug("stats from new %s server... [%f, %f, %f, %f]", | 3464 | qCDebug(interface, "stats from new %s server... [%f, %f, %f, %f]", |
| 3464 | qPrintable(serverType), rootDetails.x, rootDetails.y, rootDetails.z, rootDetails.s); | 3465 | qPrintable(serverType), rootDetails.x, rootDetails.y, rootDetails.z, rootDetails.s); |
| 3465 | 3466 | ||
| 3466 | // Add the jurisditionDetails object to the list of "fade outs" | 3467 | // Add the jurisditionDetails object to the list of "fade outs" |
| @@ -3706,7 +3707,7 @@ bool Application::askToSetAvatarUrl(const QString& url) { · 239 unmodified lines | |||
| 3706 | QNetworkRequest networkRequest = QNetworkRequest(url); | 3707 | QNetworkRequest networkRequest = QNetworkRequest(url); |
| 3707 | networkRequest.setHeader(QNetworkRequest::UserAgentHeader, HIGH_FIDELITY_USER_AGENT); | 3708 | networkRequest.setHeader(QNetworkRequest::UserAgentHeader, HIGH_FIDELITY_USER_AGENT); |
| 3708 | QNetworkReply* reply = networkAccessManager.get(networkRequest); | 3709 | QNetworkReply* reply = networkAccessManager.get(networkRequest); |
| 3709 | qDebug() << "Downloading avatar file at " << url; | 3710 | qCDebug(interface) << "Downloading avatar file at " << url; |
| 3710 | QEventLoop loop; | 3711 | QEventLoop loop; |
| 3711 | QObject::connect(reply, &QNetworkReply::finished, &loop, &QEventLoop::quit); | 3712 | QObject::connect(reply, &QNetworkReply::finished, &loop, &QEventLoop::quit); |
| 3712 | loop.exec(); | 3713 | loop.exec(); |
| @@ -3755,13 +3756,13 @@ bool Application::askToSetAvatarUrl(const QString& url) { · 42 unmodified lines | |||
| 3755 | msgBox.exec(); | 3756 | msgBox.exec(); |
| 3756 | 3757 | ||
| 3757 | if (msgBox.clickedButton() == headButton) { | 3758 | if (msgBox.clickedButton() == headButton) { |
| 3758 | qDebug() << "Chose to use for head: " << url; | 3759 | qCDebug(interface) << "Chose to use for head: " << url; |
| 3759 | _myAvatar->setFaceModelURL(url); | 3760 | _myAvatar->setFaceModelURL(url); |
| 3760 | UserActivityLogger::getInstance().changedModel("head", url); | 3761 | UserActivityLogger::getInstance().changedModel("head", url); |
| 3761 | _myAvatar->sendIdentityPacket(); | 3762 | _myAvatar->sendIdentityPacket(); |
| 3762 | emit faceURLChanged(url); | 3763 | emit faceURLChanged(url); |
| 3763 | } else if (msgBox.clickedButton() == bodyButton) { | 3764 | } else if (msgBox.clickedButton() == bodyButton) { |
| 3764 | qDebug() << "Chose to use for body: " << url; | 3765 | qCDebug(interface) << "Chose to use for body: " << url; |
| 3765 | _myAvatar->setSkeletonModelURL(url); | 3766 | _myAvatar->setSkeletonModelURL(url); |
| 3766 | // if the head is empty, reset it to the default head. | 3767 | // if the head is empty, reset it to the default head. |
| 3767 | if (_myAvatar->getFaceModelURLString().isEmpty()) { | 3768 | if (_myAvatar->getFaceModelURLString().isEmpty()) { |
| @@ -3773,7 +3774,7 @@ bool Application::askToSetAvatarUrl(const QString& url) { · 5 unmodified lines | |||
| 3773 | _myAvatar->sendIdentityPacket(); | 3774 | _myAvatar->sendIdentityPacket(); |
| 3774 | emit skeletonURLChanged(url); | 3775 | emit skeletonURLChanged(url); |
| 3775 | } else if (msgBox.clickedButton() == bodyAndHeadButton) { | 3776 | } else if (msgBox.clickedButton() == bodyAndHeadButton) { |
| 3776 | qDebug() << "Chose to use for body + head: " << url; | 3777 | qCDebug(interface) << "Chose to use for body + head: " << url; |
| 3777 | _myAvatar->setFaceModelURL(QString()); | 3778 | _myAvatar->setFaceModelURL(QString()); |
| 3778 | _myAvatar->setSkeletonModelURL(url); | 3779 | _myAvatar->setSkeletonModelURL(url); |
| 3779 | UserActivityLogger::getInstance().changedModel("skeleton", url); | 3780 | UserActivityLogger::getInstance().changedModel("skeleton", url); |
| @@ -3781,7 +3782,7 @@ bool Application::askToSetAvatarUrl(const QString& url) { · 1 unmodified line | |||
| 3781 | emit faceURLChanged(QString()); | 3782 | emit faceURLChanged(QString()); |
| 3782 | emit skeletonURLChanged(url); | 3783 | emit skeletonURLChanged(url); |
| 3783 | } else { | 3784 | } else { |
| 3784 | qDebug() << "Declined to use the avatar: " << url; | 3785 | qCDebug(interface) << "Declined to use the avatar: " << url; |
| 3785 | } | 3786 | } |
| 3786 | return true; | 3787 | return true; |
| 3787 | } | 3788 | } |
| @@ -3793,10 +3794,10 @@ bool Application::askToLoadScript(const QString& scriptFilenameOrURL) { · 5 unmodified lines | |||
| 3793 | reply = QMessageBox::question(getWindow(), "Run Script", message, QMessageBox::Yes|QMessageBox::No); | 3794 | reply = QMessageBox::question(getWindow(), "Run Script", message, QMessageBox::Yes|QMessageBox::No); |
| 3794 | 3795 | ||
| 3795 | if (reply == QMessageBox::Yes) { | 3796 | if (reply == QMessageBox::Yes) { |
| 3796 | qDebug() << "Chose to run the script: " << scriptFilenameOrURL; | 3797 | qCDebug(interface) << "Chose to run the script: " << scriptFilenameOrURL; |
| 3797 | loadScript(scriptFilenameOrURL); | 3798 | loadScript(scriptFilenameOrURL); |
| 3798 | } else { | 3799 | } else { |
| 3799 | qDebug() << "Declined to run the script: " << scriptFilenameOrURL; | 3800 | qCDebug(interface) << "Declined to run the script: " << scriptFilenameOrURL; |
| 3800 | } | 3801 | } |
| 3801 | return true; | 3802 | return true; |
| 3802 | } | 3803 | } |
| @@ -3854,7 +3855,7 @@ void Application::handleScriptEngineLoaded(const QString& scriptFilename) { · 51 unmodified lines | |||
| 3854 | } | 3855 | } |
| 3855 | 3856 | ||
| 3856 | void Application::handleScriptLoadError(const QString& scriptFilename) { | 3857 | void Application::handleScriptLoadError(const QString& scriptFilename) { |
| 3857 | qDebug() << "Application::loadScript(), script failed to load..."; | 3858 | qCDebug(interface) << "Application::loadScript(), script failed to load..."; |
| 3858 | QMessageBox::warning(getWindow(), "Error Loading Script", scriptFilename + " failed to load."); | 3859 | QMessageBox::warning(getWindow(), "Error Loading Script", scriptFilename + " failed to load."); |
| 3859 | } | 3860 | } |
| 3860 | 3861 | ||
| @@ -3876,7 +3877,7 @@ void Application::stopAllScripts(bool restart) { · 15 unmodified lines | |||
| 3876 | connect(it.value(), SIGNAL(finished(const QString&)), SLOT(loadScript(const QString&))); | 3877 | connect(it.value(), SIGNAL(finished(const QString&)), SLOT(loadScript(const QString&))); |
| 3877 | } | 3878 | } |
| 3878 | it.value()->stop(); | 3879 | it.value()->stop(); |
| 3879 | qDebug() << "stopping script..." << it.key(); | 3880 | qCDebug(interface) << "stopping script..." << it.key(); |
| 3880 | } | 3881 | } |
| 3881 | // HACK: ATM scripts cannot set/get their animation priorities, so we clear priorities | 3882 | // HACK: ATM scripts cannot set/get their animation priorities, so we clear priorities |
| 3882 | // whenever a script stops in case it happened to have been setting joint rotations. | 3883 | // whenever a script stops in case it happened to have been setting joint rotations. |
| @@ -3888,7 +3889,7 @@ void Application::stopScript(const QString &scriptName) { · 5 unmodified lines | |||
| 3888 | const QString& scriptURLString = QUrl(scriptName).toString(); | 3889 | const QString& scriptURLString = QUrl(scriptName).toString(); |
| 3889 | if (_scriptEnginesHash.contains(scriptURLString)) { | 3890 | if (_scriptEnginesHash.contains(scriptURLString)) { |
| 3890 | _scriptEnginesHash.value(scriptURLString)->stop(); | 3891 | _scriptEnginesHash.value(scriptURLString)->stop(); |
| 3891 | qDebug() << "stopping script..." << scriptName; | 3892 | qCDebug(interface) << "stopping script..." << scriptName; |
| 3892 | // HACK: ATM scripts cannot set/get their animation priorities, so we clear priorities | 3893 | // HACK: ATM scripts cannot set/get their animation priorities, so we clear priorities |
| 3893 | // whenever a script stops in case it happened to have been setting joint rotations. | 3894 | // whenever a script stops in case it happened to have been setting joint rotations. |
| 3894 | // TODO: expose animation priorities and provide a layered animation control system. | 3895 | // TODO: expose animation priorities and provide a layered animation control system. |
| @@ -3986,8 +3987,8 @@ void Application::domainSettingsReceived(const QJsonObject& domainSettingsObject · 91 unmodified lines | |||
| 3986 | voxelWalletUUID = QUuid(voxelObject[VOXEL_WALLET_UUID].toString()); | 3987 | voxelWalletUUID = QUuid(voxelObject[VOXEL_WALLET_UUID].toString()); |
| 3987 | } | 3988 | } |
| 3988 | 3989 | ||
| 3989 | qDebug() << "Octree edits costs are" << satoshisPerVoxel << "per octree cell and" << satoshisPerMeterCubed << "per meter cubed"; | 3990 | qCDebug(interface) << "Octree edits costs are" << satoshisPerVoxel << "per octree cell and" << satoshisPerMeterCubed << "per meter cubed"; |
| 3990 | qDebug() << "Destination wallet UUID for edit payments is" << voxelWalletUUID; | 3991 | qCDebug(interface) << "Destination wallet UUID for edit payments is" << voxelWalletUUID; |
| 3991 | } | 3992 | } |
| 3992 | 3993 | ||
| 3993 | QString Application::getPreviousScriptLocation() { | 3994 | QString Application::getPreviousScriptLocation() { |
| @@ -4152,9 +4153,9 @@ void Application::setVSyncEnabled() { · 158 unmodified lines | |||
| 4152 | if (wglewGetExtension("WGL_EXT_swap_control")) { | 4153 | if (wglewGetExtension("WGL_EXT_swap_control")) { |
| 4153 | wglSwapIntervalEXT(vsyncOn); | 4154 | wglSwapIntervalEXT(vsyncOn); |
| 4154 | int swapInterval = wglGetSwapIntervalEXT(); | 4155 | int swapInterval = wglGetSwapIntervalEXT(); |
| 4155 | qDebug("V-Sync is %s\n", (swapInterval > 0 ? "ON" : "OFF")); | 4156 | qCDebug(interface, "V-Sync is %s\n", (swapInterval > 0 ? "ON" : "OFF")); |
| 4156 | } else { | 4157 | } else { |
| 4157 | qDebug("V-Sync is FORCED ON on this system\n"); | 4158 | qCDebug(interface, "V-Sync is FORCED ON on this system\n"); |
| 4158 | } | 4159 | } |
| 4159 | #elif defined(Q_OS_LINUX) | 4160 | #elif defined(Q_OS_LINUX) |
| 4160 | // TODO: write the poper code for linux | 4161 | // TODO: write the poper code for linux |
| @@ -4163,13 +4164,13 @@ void Application::setVSyncEnabled() { · 2 unmodified lines | |||
| 4163 | glxSwapIntervalEXT(vsyncOn); | 4164 | glxSwapIntervalEXT(vsyncOn); |
| 4164 | int swapInterval = xglGetSwapIntervalEXT(); | 4165 | int swapInterval = xglGetSwapIntervalEXT(); |
| 4165 | _isVSyncOn = swapInterval; | 4166 | _isVSyncOn = swapInterval; |
| 4166 | qDebug("V-Sync is %s\n", (swapInterval > 0 ? "ON" : "OFF")); | 4167 | qCDebug(interface, "V-Sync is %s\n", (swapInterval > 0 ? "ON" : "OFF")); |
| 4167 | } else { | 4168 | } else { |
| 4168 | qDebug("V-Sync is FORCED ON on this system\n"); | 4169 | qCDebug(interface, "V-Sync is FORCED ON on this system\n"); |
| 4169 | } | 4170 | } |
| 4170 | */ | 4171 | */ |
| 4171 | #else | 4172 | #else |
| 4172 | qDebug("V-Sync is FORCED ON on this system\n"); | 4173 | qCDebug(interface, "V-Sync is FORCED ON on this system\n"); |
| 4173 | #endif | 4174 | #endif |
| 4174 | } | 4175 | } |
| 4175 | 4176 | ||
| @@ -4285,7 +4286,7 @@ void Application::notifyPacketVersionMismatch() { · 109 unmodified lines | |||
| 4285 | 4286 | ||
| 4286 | void Application::checkSkeleton() { | 4287 | void Application::checkSkeleton() { |
| 4287 | if (_myAvatar->getSkeletonModel().isActive() && !_myAvatar->getSkeletonModel().hasSkeleton()) { | 4288 | if (_myAvatar->getSkeletonModel().isActive() && !_myAvatar->getSkeletonModel().hasSkeleton()) { |
| 4288 | qDebug() << "MyAvatar model has no skeleton"; | 4289 | qCDebug(interface) << "MyAvatar model has no skeleton"; |
| 4289 | 4290 | ||
| 4290 | QString message = "Your selected avatar body has no skeleton.\n\nThe default body will be loaded..."; | 4291 | QString message = "Your selected avatar body has no skeleton.\n\nThe default body will be loaded..."; |
| 4291 | QMessageBox msgBox; | 4292 | QMessageBox msgBox; |