diff options
-rw-r--r-- | source/blender/editors/transform/transform.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 2fe68b20806..775e8d2de8e 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -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"; |