Skip to content

Commit

Permalink
FIX: wrong use of reverse iter
Browse files Browse the repository at this point in the history
jira:NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I914f082f378b3cd195b1e69e166409d7302791d2
  • Loading branch information
XunZhangBambu authored and lanewei120 committed Nov 15, 2024
1 parent c9faf8d commit f4b18a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libslic3r/GCode/ToolOrdering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ void ToolOrdering::assign_custom_gcodes(const Print& print)
for (auto iter = m_layer_tools.rbegin(); iter != m_layer_tools.rend(); ++iter) {
for (unsigned int i : iter->extruders)
extruder_printing_above[i] = true;
int layer_idx = iter.base() - m_layer_tools.begin();
int layer_idx = m_layer_tools.rend() - iter - 1;
extruder_print_above_by_layer.emplace(layer_idx, extruder_printing_above);
}
}
Expand Down

0 comments on commit f4b18a9

Please sign in to comment.