diff options
author | Ghostkeeper <rubend@tutanota.com> | 2021-10-29 12:54:34 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2021-10-29 12:54:34 +0300 |
commit | 61bd566e4722f34032fddfca826e41df6d969fce (patch) | |
tree | 6d7d9d9a747fcf723207ec1ba0a5e48761657c8c /src | |
parent | 918776dcc851d1f1c1eb16cf319008b8f4bbe762 (diff) |
Check if there are insets before using them
If there are no insets, there will be no infill or skin area and everything can remain empty.
Fixes Ultimaker/Cura#10657.
Diffstat (limited to 'src')
-rw-r--r-- | src/skin.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/skin.cpp b/src/skin.cpp index 0da59c7ed..204bf3bfd 100644 --- a/src/skin.cpp +++ b/src/skin.cpp @@ -187,7 +187,10 @@ void SkinInfillAreaComputation::generateSkinAndInfillAreas() */ void SkinInfillAreaComputation::generateSkinAndInfillAreas(SliceLayerPart& part) { - + if(part.insets.empty()) + { + return; + } Polygons original_outline = part.insets.back().offset(-innermost_wall_line_width / 2); // make a copy of the outline which we later intersect and union with the resized skins to ensure the resized skin isn't too large or removed completely. |