Files
openscad/openscad-git_c68684f9520d.patch
Stefan Brüns e4f5219f68 Accepting request 686806 from home:StefanBruens:branches:graphics
- Cleanup BuildRequires, sort, remove duplicates
- Fix Url:, openscad.org redirects to www.openscad.org
- Add openscad-git_c68684f9520d.patch, fix build with Boost 1.69
- Use %license, remove %defattr

OBS-URL: https://build.opensuse.org/request/show/686806
OBS-URL: https://build.opensuse.org/package/show/graphics/openscad?expand=0&rev=24
2019-03-21 00:07:53 +00:00

23 lines
979 B
Diff

From c68684f9520d6c241dd5d96e57a0020837504a32 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/CSGTermEvaluator.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/CSGTermEvaluator.cc b/src/CSGTermEvaluator.cc
index 6416f29b6e..b3753cf431 100644
--- a/src/CSGTermEvaluator.cc
+++ b/src/CSGTermEvaluator.cc
@@ -109,7 +109,7 @@ static shared_ptr<CSGTerm> evaluate_csg_term_from_geometry(const State &state,
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());