Merged changes in the trunk up to revision 43881.
[blender.git] / source / blender / editors / transform / transform.c
index 1e1f6e4279ea744486eae6b4283c53ce770eb968..15bd14ce94c8de4a7db21048366bc8ce46ab9e0c 100644 (file)
@@ -5566,9 +5566,9 @@ static void headerTimeTranslate(TransInfo *t, char *str)
                /* apply snapping + frame->seconds conversions */
                if (autosnap == SACTSNAP_STEP) {
                        if (doTime)
-                               val= floor((double)val/secf + 0.5f);
+                               val= floorf((double)val/secf + 0.5f);
                        else
-                               val= floor(val + 0.5f);
+                               val= floorf(val + 0.5f);
                }
                else {
                        if (doTime)