[Bf-blender-cvs] [2da3949e26f] soc-2017-normal-tools: Fix second issue introduced in refactoring/cleanup of weighted normals.
Bastien Montagne
noreply at git.blender.org
Thu Apr 12 10:31:45 CEST 2018
Commit: 2da3949e26f9828429eb55b00d83a5fad1157162
Author: Bastien Montagne
Date: Thu Apr 12 10:30:19 2018 +0200
Branches: soc-2017-normal-tools
https://developer.blender.org/rB2da3949e26f9828429eb55b00d83a5fad1157162
Fix second issue introduced in refactoring/cleanup of weighted normals.
'degenerated too short normals' check was probably a bit too aggressive,
moved it back to more common 1e-6 value.
===================================================================
M source/blender/modifiers/intern/MOD_weighted_normal.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_weighted_normal.c b/source/blender/modifiers/intern/MOD_weighted_normal.c
index 7e339f0012d..480e4ceaa7d 100644
--- a/source/blender/modifiers/intern/MOD_weighted_normal.c
+++ b/source/blender/modifiers/intern/MOD_weighted_normal.c
@@ -39,7 +39,7 @@
#include "MOD_modifiertypes.h"
#include "MOD_util.h"
-#define CLNORS_VALID_VEC_LEN (1e-4f)
+#define CLNORS_VALID_VEC_LEN (1e-6f)
typedef struct ModePair {
float val; /* Contains mode based value (face area / corner angle). */
More information about the Bf-blender-cvs
mailing list