mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Use float for elapsed_time
When accumulating elapsed_time from many moves that take less than 1 second, elapsed_time does not get incremented because (unsigned int)0.9 = 0.
This commit is contained in:
parent
4c622c504f
commit
3d73fbf5fd
3 changed files with 4 additions and 4 deletions
|
@ -198,7 +198,7 @@ Wipe::wipe(GCode &gcodegen, bool toolchange)
|
|||
|
||||
GCode::GCode()
|
||||
: placeholder_parser(NULL), enable_loop_clipping(true), enable_cooling_markers(false), layer_count(0),
|
||||
layer_index(-1), layer(NULL), first_layer(false), elapsed_time(0), volumetric_speed(0),
|
||||
layer_index(-1), layer(NULL), first_layer(false), elapsed_time(0.0), volumetric_speed(0),
|
||||
_last_pos_defined(false)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue