mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-06 22:47:32 -06:00
FIX: flush volume is error when flush_multiplier is 0.
STUDIO-2636 Change-Id: I013a6c974799996744727b3f50426bf806c5b2df
This commit is contained in:
parent
d3d3f41f8c
commit
6e797e7a99
1 changed files with 8 additions and 2 deletions
|
@ -613,8 +613,14 @@ std::vector<float> WipingPanel::read_matrix_values() {
|
|||
for (unsigned int i=0;i<m_number_of_extruders;++i) {
|
||||
for (unsigned int j=0;j<m_number_of_extruders;++j) {
|
||||
double val = 0.;
|
||||
edit_boxes[j][i]->GetValue().ToDouble(&val);
|
||||
output.push_back((float)val / get_flush_multiplier());
|
||||
float flush_multipler = get_flush_multiplier();
|
||||
if (flush_multipler == 0) {
|
||||
output.push_back(0.);
|
||||
}
|
||||
else {
|
||||
edit_boxes[j][i]->GetValue().ToDouble(&val);
|
||||
output.push_back((float) val / get_flush_multiplier());
|
||||
}
|
||||
}
|
||||
}
|
||||
return output;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue