Commit: 40f92e161a2279fe13c1099ba7a22ead5b39223d
Author: Howard Trickey
Date:   Fri Aug 28 10:44:09 2020 -0400
Branches: newboolean
https://developer.blender.org/rB40f92e161a2279fe13c1099ba7a22ead5b39223d

Quiet a warning in non-debug build.

===================================================================

M       source/blender/blenlib/intern/mesh_boolean.cc

===================================================================

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

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to