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!
This commit is contained in:
Ton Roosendaal
2006-07-12 15:28:37 +00:00
parent b9f4efe1c7
commit 7aaa8c720c

View File

@@ -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;