mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-31 11:50:33 -07:00
Fix: When the flushing multiplier is 0, a warning popup should also be displayed.
Jira: STUDIO-14962 Change-Id: Iee6887fb6ed6941bbd58d9d2b834b6654ee9c806 (cherry picked from commit 43dbb7f228afb4304b6ea398991efd2659feafbe)
This commit is contained in:
parent
34b25be058
commit
edced8d5a6
1 changed files with 4 additions and 0 deletions
|
|
@ -10321,6 +10321,10 @@ bool GLCanvas3D::is_flushing_matrix_error() {
|
|||
const std::vector<double> &config_matrix = (project_config.option<ConfigOptionFloats>("flush_volumes_matrix"))->values;
|
||||
const std::vector<double> &config_multiplier = (project_config.option<ConfigOptionFloats>("flush_multiplier"))->values;
|
||||
|
||||
for (auto multiplier : config_multiplier) {
|
||||
if (multiplier == 0) return true;
|
||||
}
|
||||
|
||||
int matrix_len = config_matrix.size() / config_multiplier.size();
|
||||
int row_len = std::sqrt(matrix_len);
|
||||
for (int i = 0; i < config_matrix.size(); i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue