mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-29 08:32:00 -05:00
ENH: add stride in get_index_for_extruder
JIRA: no-jira Change-Id: If529296bf6d35edc35aee3ff497184dce70332d1 (cherry picked from commit e770043c4d7a3e96acfb27f306853cc339da7529)
This commit is contained in:
1 parent
aba8c12d07
commit
018f0c0353
2 files changed
+4
-4
No files matched your search
@@ -7611,7 +7611,7 @@ bool DynamicPrintConfig::support_different_extruders(int& extruder_count)
|
||||
return (variant_set.size() > 1);
|
||||
}
|
||||
|
||||
int DynamicPrintConfig::get_index_for_extruder(int extruder_id, std::string id_name, ExtruderType extruder_type, NozzleVolumeType nozzle_volume_type, std::string variant_name) const
|
||||
int DynamicPrintConfig::get_index_for_extruder(int extruder_id, std::string id_name, ExtruderType extruder_type, NozzleVolumeType nozzle_volume_type, std::string variant_name, unsigned int stride) const
|
||||
{
|
||||
int ret = -1;
|
||||
|
||||
@@ -7628,12 +7628,12 @@ int DynamicPrintConfig::get_index_for_extruder(int extruder_id, std::string id_n
|
||||
if (id_opt) {
|
||||
const int id = id_opt->get_at(index);
|
||||
if (id == extruder_id) {
|
||||
ret = index;
|
||||
ret = index * stride;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
ret = index;
|
||||
ret = index * stride;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user