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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user