Correct own error w/ snap-scale T46503

Don't use nan for comparisons.
This commit is contained in:
Campbell Barton 2015-10-23 21:31:05 +11:00
parent d1c6364099
commit 4aac73a86f
1 changed files with 1 additions and 1 deletions

View File

@ -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 */