mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 09:06:02 +08:00
Bugfix: Uninitialized value in wipe tower integration.
Just a small fix to avoid c++ undefined behaviour.
This commit is contained in:
parent
9a68645106
commit
cfb6526732
@ -157,8 +157,11 @@ std::string WipeTowerIntegration::post_process_wipe_tower_moves(const WipeTower:
|
|||||||
while (line_str >> ch) {
|
while (line_str >> ch) {
|
||||||
if (ch == 'X' || ch == 'Y')
|
if (ch == 'X' || ch == 'Y')
|
||||||
line_str >> (ch == 'X' ? pos.x() : pos.y());
|
line_str >> (ch == 'X' ? pos.x() : pos.y());
|
||||||
else if (ch == 'Z')
|
else if (ch == 'Z') {
|
||||||
line_str >> *z;
|
float z_value;
|
||||||
|
line_str >> z_value;
|
||||||
|
z = z_value;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
line_out << ch;
|
line_out << ch;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user