[Bf-blender-cvs] [4aac73a] blender-v2.76-release: Correct own error w/ snap-scale T46503

Campbell Barton noreply at git.blender.org
Thu Oct 29 12:07:50 CET 2015


Commit: 4aac73a86f00157572db717260e1442998f0e12c
Author: Campbell Barton
Date:   Fri Oct 23 21:31:05 2015 +1100
Branches: blender-v2.76-release
https://developer.blender.org/rB4aac73a86f00157572db717260e1442998f0e12c

Correct own error w/ snap-scale T46503

Don't use nan for comparisons.

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

M	source/blender/editors/transform/transform_snap.c

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

diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c
index 278d56e..bdebeb7 100644
--- a/source/blender/editors/transform/transform_snap.c
+++ b/source/blender/editors/transform/transform_snap.c
@@ -85,7 +85,7 @@
 
 #define TRANSFORM_DIST_MAX_PX 1000.0f
 #define TRANSFORM_SNAP_MAX_PX 100.0f
-#define TRANSFORM_DIST_INVALID NAN_FLT
+#define TRANSFORM_DIST_INVALID -FLT_MAX
 
 /* use half of flt-max so we can scale up without an exception */




More information about the Bf-blender-cvs mailing list