Fix T48154: Decimate topology changes with scale

This can't be avoided completely, however the threshold used can be much lower.
This commit is contained in:
Campbell Barton 2016-06-14 17:12:29 +10:00
parent 049f715d1c
commit 51cb4ea2cf
Notes: blender-bot 2023-02-14 07:59:33 +01:00
Referenced by issue #48154, issue with Decimate modifier
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@
/* if the cost from #BLI_quadric_evaluate is 'noise', fallback to topology */
#define USE_TOPOLOGY_FALLBACK
#ifdef USE_TOPOLOGY_FALLBACK
# define TOPOLOGY_FALLBACK_EPS FLT_EPSILON
/* cost is calculated with double precision, it's ok to use a very small epsilon, see T48154. */
# define TOPOLOGY_FALLBACK_EPS 1e-12f
#endif
/* these checks are for rare cases that we can't avoid since they are valid meshes still */