fix for r51198, text wasn't flashing (gcc4.7, 64bit linux)

This commit is contained in:
Campbell Barton
2012-10-09 03:44:29 +00:00
parent b16ca24d98
commit 62d3754a40

View File

@@ -1586,7 +1586,8 @@ static void drawAutoKeyWarning(TransInfo *t, ARegion *ar)
* We multiply by two to speed up the odd/even time-in-seconds = on/off toggle.
* - Always start with warning shown so that animators are more likely to notice when starting to transform
*/
show_warning = (int)(t->last_update * 2.0) & 1;
show_warning = ((int)((t->last_update - floor(t->last_update)) * 2.0) & 1);
if ((show_warning) || (t->state == TRANS_STARTING)) {
const char printable[] = "Auto Keying On";