blob: 893336d5e5c3f7e690f786e81f546f7101ea6e0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From 3647801a7673f1e843bd64a0ac38d60dd4ae7495 Mon Sep 17 00:00:00 2001
From: Sean Harmer <sean.harmer@kdab.com>
Date: Sun, 13 Sep 2015 19:17:45 +0100
Subject: [PATCH] Fix ambiguous if else in assimp
Change-Id: I17516fc8f34dad7a99f536dc4b3cba47e7779d4b
---
src/3rdparty/assimp/contrib/clipper/clipper.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/3rdparty/assimp/contrib/clipper/clipper.cpp b/src/3rdparty/assimp/contrib/clipper/clipper.cpp
index 2b209da..b2316cc 100644
--- a/src/3rdparty/assimp/contrib/clipper/clipper.cpp
+++ b/src/3rdparty/assimp/contrib/clipper/clipper.cpp
@@ -2124,11 +2124,13 @@ void Clipper::AddOutPt(TEdge *e, const IntPoint &pt)
{
//check for 'rounding' artefacts ...
if (outRec->sides == esNeither && pt.Y == op->pt.Y)
+ {
if (ToFront)
{
if (pt.X == op->pt.X +1) return; //ie wrong side of bottomPt
}
else if (pt.X == op->pt.X -1) return; //ie wrong side of bottomPt
+ }
outRec->sides = (EdgeSide)(outRec->sides | e->side);
if (outRec->sides == esBoth)
--
2.5.1
|