mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
Fixed a bug where camera facing polygons were not textured
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user