Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-07-12 19:28:37 +0400
committerTon Roosendaal <ton@blender.org>2006-07-12 19:28:37 +0400
commit7aaa8c720c912ba4a2816bec3ba3d970e44955ba (patch)
tree463373edfa75da6113e85fd2d07c31da03fe177b
parentb9f4efe1c71753e7b0c3982984f994590ee78c64 (diff)
Removed the isnan() fix for silly people who type in NAN in a button!
Apparently not supported in Windows compiler, and although it has _isnan() I've got no time to code wrappers for it, and #ifdefs here is plain bad code. Nice todo for Campbell one of these days after release!
-rw-r--r--source/blender/src/interface.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c
index 8637bace852..b456e1d315c 100644
--- a/source/blender/src/interface.c
+++ b/source/blender/src/interface.c
@@ -2051,8 +2051,6 @@ static int ui_act_as_text_but(uiBut *but)
}
}
else value = atof(str);
- /* NAN detection */
- if(isnan(value)) value= 0.0;
if(but->pointype!=FLO) value= (int)value;