[Bf-blender-cvs] [5ccdc6ad861] master: Cleanup: Fix clang-tidy warning in the new boolean code

Sebastian Parborg noreply at git.blender.org
Mon Sep 7 14:26:45 CEST 2020


Commit: 5ccdc6ad8611bdefb19e9c1085e20e21892311bc
Author: Sebastian Parborg
Date:   Mon Sep 7 14:26:10 2020 +0200
Branches: master
https://developer.blender.org/rB5ccdc6ad8611bdefb19e9c1085e20e21892311bc

Cleanup: Fix clang-tidy warning in the new boolean code

No functional changes.

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

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 3b128aba102..e92751efe72 100644
--- a/source/blender/blenlib/intern/mesh_boolean.cc
+++ b/source/blender/blenlib/intern/mesh_boolean.cc
@@ -2375,9 +2375,8 @@ static bool point_is_inside_shape(const IMesh &tm,
   if (high_confidence) {
     return (gwn > 0.9);
   }
-  else {
-    return (gwn > 0.01);
-  }
+
+  return (gwn > 0.01);
 }
 
 /**



More information about the Bf-blender-cvs mailing list