Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/CuraEngine.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemco Burema <r.burema@ultimaker.com>2022-11-09 17:21:31 +0300
committerRemco Burema <r.burema@ultimaker.com>2022-11-09 17:21:31 +0300
commitcdd31c91c20fd0d9a8295bf710637d971253b4fc (patch)
tree71e0c29bbe1694cea459c6a9b145d7bd06952c10
parent9ed41a805952506ada8c33bfaf07c6e66a200eab (diff)
Fix 1000x too much walls for support interface.CURA-9350_support_interface_wall
Forgot coord_t is always multiplied by 1000, since it's our fixed points micron type, not 'just' an integer. Properly use size_t as all counts should. part of CURA-9350
-rw-r--r--src/FffGcodeWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FffGcodeWriter.cpp b/src/FffGcodeWriter.cpp
index 1760b5643..a3063c5ab 100644
--- a/src/FffGcodeWriter.cpp
+++ b/src/FffGcodeWriter.cpp
@@ -3087,7 +3087,7 @@ bool FffGcodeWriter::addSupportRoofsToGCode(const SliceDataStorage& storage, Lay
constexpr coord_t support_roof_overlap = 0; // the roofs should never be expanded outwards
constexpr size_t infill_multiplier = 1;
constexpr coord_t extra_infill_shift = 0;
- const size_t wall_line_count = roof_extruder.settings.get<coord_t>("support_roof_wall_count");
+ const size_t wall_line_count = roof_extruder.settings.get<size_t>("support_roof_wall_count");
const Point infill_origin;
constexpr bool skip_stitching = false;
constexpr bool fill_gaps = true;
@@ -3198,7 +3198,7 @@ bool FffGcodeWriter::addSupportBottomsToGCode(const SliceDataStorage& storage, L
constexpr coord_t support_bottom_overlap = 0; // the bottoms should never be expanded outwards
constexpr size_t infill_multiplier = 1;
constexpr coord_t extra_infill_shift = 0;
- const size_t wall_line_count = bottom_extruder.settings.get<coord_t>("support_bottom_wall_count");
+ const size_t wall_line_count = bottom_extruder.settings.get<size_t>("support_bottom_wall_count");
const Point infill_origin;
constexpr bool skip_stitching = false;
constexpr bool fill_gaps = true;