fix for r51198, text wasn't flashing (gcc4.7, 64bit linux)
authorCampbell Barton <ideasman42@gmail.com>
Tue, 9 Oct 2012 03:44:29 +0000 (03:44 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 9 Oct 2012 03:44:29 +0000 (03:44 +0000)
source/blender/editors/transform/transform.c

index 2fe68b20806b93b440c38016facdf53f8adcaefb..775e8d2de8eae8cef1b656c4bf3b04bde96bd786 100644 (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";