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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-02-17 08:15:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-17 08:15:49 +0400
commit4134bdc75c8f7fe354d850e84503546d743e9382 (patch)
tree212acbfb8f7904aad97606ddd992d57423595218 /source/blender/blenlib/intern/scanfill_utils.c
parentda8c6360b1f094c33a7a50d1e8315c4df221e839 (diff)
Fix for rare crash in recent mask option to check overlaps
Diffstat (limited to 'source/blender/blenlib/intern/scanfill_utils.c')
-rw-r--r--source/blender/blenlib/intern/scanfill_utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/scanfill_utils.c b/source/blender/blenlib/intern/scanfill_utils.c
index a6477d45054..afa40c0b3fe 100644
--- a/source/blender/blenlib/intern/scanfill_utils.c
+++ b/source/blender/blenlib/intern/scanfill_utils.c
@@ -258,6 +258,12 @@ static bool scanfill_preprocess_self_isect(
LinkData *isect_link;
+ if (UNLIKELY(e_ls == NULL)) {
+ /* only happens in very rare cases (entirely overlapping splines).
+ * in this case se can't do much useful. but at least don't crash */
+ continue;
+ }
+
/* maintain coorect terminating edge */
if (pi->edge_last == eed) {
pi->edge_last = NULL;