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:
authorHoward Trickey <howard.trickey@gmail.com>2020-08-28 17:44:09 +0300
committerHoward Trickey <howard.trickey@gmail.com>2020-08-28 17:44:09 +0300
commit40f92e161a2279fe13c1099ba7a22ead5b39223d (patch)
treeb519ef126f6bfd2f9f3b9f8572754bd5a84d2119
parentb8cc4b93927929e5898f3270013aa8e03ba96724 (diff)
Quiet a warning in non-debug build.newboolean
-rw-r--r--source/blender/blenlib/intern/mesh_boolean.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/mesh_boolean.cc b/source/blender/blenlib/intern/mesh_boolean.cc
index 51e8ab172fd..bb8b14ebdc6 100644
--- a/source/blender/blenlib/intern/mesh_boolean.cc
+++ b/source/blender/blenlib/intern/mesh_boolean.cc
@@ -2008,6 +2008,7 @@ static void propagate_windings_and_in_output_volume(PatchesInfo &pinfo,
int t = patch.tri(0);
int shape = shape_fn(t);
BLI_assert(shape < nshapes);
+ UNUSED_VARS_NDEBUG(nshapes);
if (dbg_level > 1) {
std::cout << " representative tri " << t << ": in shape " << shape << "\n";
}
@@ -2391,6 +2392,7 @@ static IMesh gwn_boolean(const IMesh &tm,
Vector<Face *> out_faces;
out_faces.reserve(tm.face_size());
BLI_assert(nshapes == 2); /* TODO: generalize. */
+ UNUSED_VARS_NDEBUG(nshapes);
for (int p : pinfo.index_range()) {
const Patch &patch = pinfo.patch(p);
/* For test triangle, choose one in the middle of patch list