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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-05-07 16:45:17 +0300
committerbubnikv <bubnikv@gmail.com>2019-05-07 16:45:17 +0300
commit054a3258d360957e0b68f4305cbc374828463726 (patch)
treed33d8a73bedebf29c1587d770a78a6e1b080850f /src/admesh
parent6881911411f40abee6770c21074f70579ab5992b (diff)
parent2ce0c575f609abbe3c25a1ab6eb0a0dfa8c32090 (diff)
Merge branch 'master' of https://github.com/prusa3d/Slic3r
Diffstat (limited to 'src/admesh')
-rw-r--r--src/admesh/normals.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/admesh/normals.cpp b/src/admesh/normals.cpp
index a8faa44bd..0ad134360 100644
--- a/src/admesh/normals.cpp
+++ b/src/admesh/normals.cpp
@@ -108,6 +108,9 @@ stl_fix_normal_directions(stl_file *stl) {
if (stl->error) return;
+ // this may happen for malformed models, see: https://github.com/prusa3d/Slic3r/issues/2209
+ if (stl->stats.number_of_facets == 0) return;
+
/* Initialize linked list. */
head = (struct stl_normal*)malloc(sizeof(struct stl_normal));
if(head == NULL) perror("stl_fix_normal_directions");