Skip to content

Commit 82a4a92

Browse files
committed
Do not generate support when layer number is negative
CURA-3934
1 parent 60395d0 commit 82a4a92

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/FffGcodeWriter.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,13 @@ bool FffGcodeWriter::addSupportToGCode(const SliceDataStorage& storage, LayerPla
14591459
return support_added;
14601460
}
14611461

1462+
// when raft is enabled, we will get negative layer numbers
1463+
// in this case, we don't generate support
1464+
if (layer_nr < 0)
1465+
{
1466+
return support_added;
1467+
}
1468+
14621469
const int support_roof_extruder_nr = getSettingAsIndex("support_roof_extruder_nr");
14631470
const int support_bottom_extruder_nr = getSettingAsIndex("support_bottom_extruder_nr");
14641471
int support_infill_extruder_nr = (layer_nr <= 0)? getSettingAsIndex("support_extruder_nr_layer_0") : getSettingAsIndex("support_infill_extruder_nr");

0 commit comments

Comments
 (0)