Commit: 09501c1215403d5983d182c2d016b33f27078264
Author: Johnny Matthews
Date:   Tue Jun 14 12:53:50 2022 -0500
Branches: blender-v3.2-release
https://developer.blender.org/rB09501c1215403d5983d182c2d016b33f27078264

Fix T98718: Face Is Planar Node Not handling Certain Conditions

The comparison between dot products of each point of the poly were
not taking into consideration negative values. FLT_MIN was used rather
than -FLT_MAX due to a misunderstanding of the FLT_MIN definition.

Maniphest Tasks: T98718

Differential Revision: https://developer.blender.org/D15161

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

M       
source/blender/nodes/geometry/nodes/node_geo_input_mesh_face_is_planar.cc

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

diff --git 
a/source/blender/nodes/geometry/nodes/node_geo_input_mesh_face_is_planar.cc 
b/source/blender/nodes/geometry/nodes/node_geo_input_mesh_face_is_planar.cc
index 62af0476057..63890c1515a 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_input_mesh_face_is_planar.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_input_mesh_face_is_planar.cc
@@ -65,7 +65,7 @@ class PlanarFieldInput final : public GeometryFieldInput {
       float3 reference_normal = poly_normals[i_poly];
 
       float min = FLT_MAX;
-      float max = FLT_MIN;
+      float max = -FLT_MAX;
 
       for (const int i_loop : poly_loops.index_range()) {
         const float3 vert = mesh->mvert[poly_loops[i_loop].v].co;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to