mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
ENH: config: remove unused assert
jira: no-jira Change-Id: I3e2bea9f2fd5483c3a0f492bf6a1e47274315d28 (cherry picked from commit 5ddf3ac86fe0b08c50ac25baea7f0c4a7475d2d2)
This commit is contained in:
@@ -8165,7 +8165,7 @@ int DynamicPrintConfig::update_values_from_multi_to_single(DynamicPrintConfig& s
|
||||
if (src_opt) {
|
||||
ConfigOptionStrings* opt = this->option<ConfigOptionStrings>(key, true);
|
||||
|
||||
assert(variant_count == opt->size());
|
||||
//assert(variant_count == opt->size());
|
||||
opt->values = src_opt->values;
|
||||
}
|
||||
break;
|
||||
@@ -8176,7 +8176,7 @@ int DynamicPrintConfig::update_values_from_multi_to_single(DynamicPrintConfig& s
|
||||
if (src_opt) {
|
||||
ConfigOptionInts* opt = this->option<ConfigOptionInts>(key, true);
|
||||
|
||||
assert(variant_count == opt->size());
|
||||
//assert(variant_count == opt->size());
|
||||
opt->values = src_opt->values;
|
||||
}
|
||||
break;
|
||||
@@ -8190,7 +8190,7 @@ int DynamicPrintConfig::update_values_from_multi_to_single(DynamicPrintConfig& s
|
||||
std::vector<double> old_values = opt->values;
|
||||
int old_count = old_values.size();
|
||||
|
||||
assert(variant_count == opt->size());
|
||||
//assert(variant_count == opt->size());
|
||||
opt->values = src_opt->values;
|
||||
|
||||
for (int i = 0; i < extruder_count; i++)
|
||||
@@ -8211,7 +8211,7 @@ int DynamicPrintConfig::update_values_from_multi_to_single(DynamicPrintConfig& s
|
||||
std::vector<FloatOrPercent> old_values = opt->values;
|
||||
int old_count = old_values.size();
|
||||
|
||||
assert(variant_count == opt->size());
|
||||
//assert(variant_count == opt->size());
|
||||
opt->values = src_opt->values;
|
||||
|
||||
for (int i = 0; i < extruder_count; i++)
|
||||
@@ -8229,7 +8229,7 @@ int DynamicPrintConfig::update_values_from_multi_to_single(DynamicPrintConfig& s
|
||||
if (src_opt) {
|
||||
ConfigOptionBools* opt = this->option<ConfigOptionBools>(key, true);
|
||||
|
||||
assert(variant_count == opt->size());
|
||||
//assert(variant_count == opt->size());
|
||||
opt->values = src_opt->values;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user