mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 13:08:57 +08:00
Fix of SPE-1849, GH #11174: Access violation error when slicing
Fixed access of an undefined extruder at the start of G-code export from wipe tower generator.
This commit is contained in:
parent
59029a04de
commit
212bf21b2d
@ -3256,7 +3256,7 @@ std::string GCode::travel_to(const Point &point, ExtrusionRole role, std::string
|
||||
|
||||
bool GCode::needs_retraction(const Polyline &travel, ExtrusionRole role)
|
||||
{
|
||||
if (travel.length() < scale_(EXTRUDER_CONFIG(retract_before_travel))) {
|
||||
if (! m_writer.extruder() || travel.length() < scale_(EXTRUDER_CONFIG(retract_before_travel))) {
|
||||
// skip retraction if the move is shorter than the configured threshold
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user