mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 09:15:00 +02:00
remove some debug code
This commit is contained in:
parent
03114fa610
commit
1788d19260
2 changed files with 5 additions and 17 deletions
|
@ -570,26 +570,16 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
|||
const QString TEST_SCRIPT = "--testScript";
|
||||
const QString TRACE_FILE = "--traceFile";
|
||||
const QStringList args = arguments();
|
||||
std::cout << "adebug args.size() = " << args.size() << std::endl; // adebug
|
||||
for (int i = 0; i < args.size(); ++i) {
|
||||
std::cout << i << " adebug '" << args.at(i).toStdString() << std::endl; // adebug
|
||||
for (int i = 0; i < args.size() - 1; ++i) {
|
||||
if (args.at(i) == TEST_SCRIPT) {
|
||||
QString testScriptPath = args.at(i + 1);
|
||||
std::cout << "adebug given test script '" << testScriptPath.toStdString() << "'" << std::endl; // adebug
|
||||
if (QFileInfo(testScriptPath).exists()) {
|
||||
setProperty(hifi::properties::TEST, QUrl::fromLocalFile(testScriptPath));
|
||||
std::cout << "adebug found test script '" << testScriptPath.toStdString() << "'" << std::endl; // adebug
|
||||
++i;
|
||||
} else {
|
||||
std::cout << "adebug did NOT find test script '" << testScriptPath.toStdString() << "'" << std::endl; // adebug
|
||||
}
|
||||
} else {
|
||||
std::cout << "adebug test script not specified'" << std::endl; // adebug
|
||||
if (args.at(i) == TRACE_FILE) {
|
||||
QString traceFilePath = args.at(i + 1);
|
||||
setProperty(hifi::properties::TRACING, traceFilePath);
|
||||
DependencyManager::get<tracing::Tracer>()->startTracing();
|
||||
}
|
||||
} else if (args.at(i) == TRACE_FILE) {
|
||||
QString traceFilePath = args.at(i + 1);
|
||||
setProperty(hifi::properties::TRACING, traceFilePath);
|
||||
DependencyManager::get<tracing::Tracer>()->startTracing();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -643,7 +643,6 @@ glm::quat Avatar::computeRotationFromBodyToWorldUp(float proportion) const {
|
|||
}
|
||||
|
||||
void Avatar::fixupModelsInScene() {
|
||||
#ifdef FOO // adebug
|
||||
_attachmentsToDelete.clear();
|
||||
|
||||
// check to see if when we added our models to the scene they were ready, if they were not ready, then
|
||||
|
@ -667,7 +666,6 @@ void Avatar::fixupModelsInScene() {
|
|||
_attachmentsToDelete.insert(_attachmentsToDelete.end(), _attachmentsToRemove.begin(), _attachmentsToRemove.end());
|
||||
_attachmentsToRemove.clear();
|
||||
scene->enqueuePendingChanges(pendingChanges);
|
||||
#endif // adebug
|
||||
}
|
||||
|
||||
bool Avatar::shouldRenderHead(const RenderArgs* renderArgs) const {
|
||||
|
|
Loading…
Reference in a new issue