Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-09 07:44:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-09 07:44:29 +0400
commit62d3754a40540a246a7b0e50324df548f91c2d9b (patch)
tree76e23ce09e19d528c2f5a450dfcd6a64874608fa /source/blender/editors/transform
parentb16ca24d98961e91775d2be90fb544e4f966bae5 (diff)
fix for r51198, text wasn't flashing (gcc4.7, 64bit linux)
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r--source/blender/editors/transform/transform.c3
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";