Fixed a bug where camera facing polygons were not textured

This commit is contained in:
matlabbe
2017-03-03 15:22:20 -05:00
parent fd55828c42
commit 3cf8ea63d8
5 changed files with 19 additions and 17 deletions

View File

@@ -133,14 +133,14 @@ void ProgressDialog::setMaximumSteps(int steps)
_progressBar->setMaximum(steps);
}
void ProgressDialog::incrementStep()
void ProgressDialog::incrementStep(int steps)
{
//incremental progress bar (if we don't know how many items will be added)
if(_progressBar->value() == _progressBar->maximum()-1)
if(_progressBar->value() >= _progressBar->maximum()-steps)
{
_progressBar->setMaximum(_progressBar->maximum()+1);
_progressBar->setMaximum(_progressBar->maximum()+steps+1);
}
_progressBar->setValue(_progressBar->value()+1);
_progressBar->setValue(_progressBar->value()+steps);
}
void ProgressDialog::clear()