Slightly faster time estimation

This commit is contained in:
Enrico Turri 2018-07-20 12:05:08 +02:00
parent c1d1721dae
commit 4b8e10a05c
3 changed files with 12 additions and 6 deletions

View file

@ -196,11 +196,14 @@ namespace Slic3r {
}
}
void GCodeTimeEstimator::calculate_time()
void GCodeTimeEstimator::calculate_time(bool start_from_beginning)
{
PROFILE_FUNC();
_reset_time();
_set_blocks_st_synchronize(false);
if (start_from_beginning)
{
_reset_time();
_set_blocks_st_synchronize(false);
}
_calculate_time();
#if ENABLE_MOVE_STATS