mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 00:26:01 +08:00
SPE-1277 - Fixed toolpath height calculated while processing custom start gcode
This commit is contained in:
parent
c1807d6acd
commit
9e65fc1cac
@ -2683,7 +2683,7 @@ void GCodeProcessor::process_G1(const GCodeReader::GCodeLine& line)
|
||||
if (m_height == 0.0f)
|
||||
m_height = DEFAULT_TOOLPATH_HEIGHT;
|
||||
|
||||
if (m_end_position[Z] == 0.0f)
|
||||
if (m_end_position[Z] == 0.0f || (m_extrusion_role == erCustom && m_layer_id == 0))
|
||||
m_end_position[Z] = m_height;
|
||||
|
||||
#if ENABLE_PROCESS_G2_G3_LINES
|
||||
|
Loading…
x
Reference in New Issue
Block a user