mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
FIX: cannot slice when print by object with one multi-color object
jira: STUDIO-12518 Change-Id: Ia54f979c69aa19aaa44bf1cb1d83ec973f6eb8f3 (cherry picked from commit 6c48ded6b54bd20cb55ae6e4c2c155dc25473ed7)
This commit is contained in:
@@ -2415,7 +2415,6 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
|||||||
// Find tool ordering for all the objects at once, and the initial extruder ID.
|
// Find tool ordering for all the objects at once, and the initial extruder ID.
|
||||||
// If the tool ordering has been pre-calculated by Print class for wipe tower already, reuse it.
|
// If the tool ordering has been pre-calculated by Print class for wipe tower already, reuse it.
|
||||||
tool_ordering = print.tool_ordering();
|
tool_ordering = print.tool_ordering();
|
||||||
tool_ordering.cal_most_used_extruder(print.config());
|
|
||||||
tool_ordering.assign_custom_gcodes(print);
|
tool_ordering.assign_custom_gcodes(print);
|
||||||
if (tool_ordering.all_extruders().empty())
|
if (tool_ordering.all_extruders().empty())
|
||||||
// No object to print was found, cancel the G-code export.
|
// No object to print was found, cancel the G-code export.
|
||||||
@@ -2982,6 +2981,9 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
|||||||
}
|
}
|
||||||
print.throw_if_canceled();
|
print.throw_if_canceled();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tool_ordering.cal_most_used_extruder(print.config());
|
||||||
|
|
||||||
// Process all layers of all objects (non-sequential mode) with a parallel pipeline:
|
// Process all layers of all objects (non-sequential mode) with a parallel pipeline:
|
||||||
// Generate G-code, run the filters (vase mode, cooling buffer), run the G-code analyser
|
// Generate G-code, run the filters (vase mode, cooling buffer), run the G-code analyser
|
||||||
// and export G-code into file.
|
// and export G-code into file.
|
||||||
|
|||||||
Reference in New Issue
Block a user