void-packages/srcpkgs/openscad/patches/8fb64db99ce05da1c72efb8b2f5...

23 lines
942 B
Diff

From 8fb64db99ce05da1c72efb8b2f572995fef2ea86 Mon Sep 17 00:00:00 2001
From: Marius Kintel <marius@kintel.net>
Date: Sun, 21 Oct 2018 12:02:50 -0400
Subject: [PATCH] Build fix for boost 1.69
---
src/CSGTreeEvaluator.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git src/CSGTreeEvaluator.cc src/CSGTreeEvaluator.cc
index 245d7e07d9..51d3439348 100644
--- src/CSGTermEvaluator.cc 2015-04-01 23:10:53.000000000 +0200
+++ - 2018-12-13 13:35:04.981075600 +0100
@@ -109,7 +109,7 @@
shared_ptr<const PolySet> ps = dynamic_pointer_cast<const PolySet>(geom);
// Since is_convex() doesn't handle non-planar faces, we need to tessellate
// also in the indeterminate state so we cannot just use a boolean comparison. See #1061
- bool convex = ps->convexValue();
+ bool convex{ps->convexValue()};
if (ps && !convex) {
assert(ps->getDimension() == 3);
PolySet *ps_tri = new PolySet(3, ps->convexValue());