mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
FIX: filament override is not correct
Multiple filament slots does not change the actual filament settings Jira: 3797 Change-Id: Ib377b4c79aae731caa97b408e84a87a33b3bb155 (cherry picked from commit 7d704d8f0bae14f16087c77c1bd90946632330a6) (cherry picked from commit 43e8956a1ffc9e2afbc82fdb77565f0543ac8a68)
This commit is contained in:
parent
4c2754f4ee
commit
f964842d8f
1 changed files with 19 additions and 16 deletions
|
@ -534,23 +534,26 @@ public:
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
size_t i = 0;
|
|
||||||
size_t cnt = std::min(this->size(), rhs_vec->size());
|
size_t cnt = std::min(this->size(), rhs_vec->size());
|
||||||
bool modified = false;
|
if (cnt < 1)
|
||||||
for (; i < cnt; ++ i)
|
return false;
|
||||||
if (! rhs_vec->is_nil(i) && this->values[i] != rhs_vec->values[i]) {
|
|
||||||
this->values[i] = rhs_vec->values[i];
|
if (this->values.empty())
|
||||||
modified = true;
|
this->values.resize(rhs_vec->size());
|
||||||
}
|
else
|
||||||
for (; i < rhs_vec->size(); ++ i)
|
this->values.resize(rhs_vec->size(), this->values.front());
|
||||||
if (! rhs_vec->is_nil(i)) {
|
|
||||||
if (this->values.empty())
|
bool modified = false;
|
||||||
this->values.resize(i + 1);
|
auto default_value = this->values[0];
|
||||||
else
|
for (size_t i = 0; i < rhs_vec->size(); ++i) {
|
||||||
this->values.resize(i + 1, this->values.front());
|
if (!rhs_vec->is_nil(i)) {
|
||||||
this->values[i] = rhs_vec->values[i];
|
this->values[i] = rhs_vec->values[i];
|
||||||
modified = true;
|
modified = true;
|
||||||
}
|
} else {
|
||||||
|
this->values[i] = default_value;
|
||||||
|
}
|
||||||
|
}
|
||||||
return modified;
|
return modified;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue