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:
Diffstat (limited to 'source/blender/editors/animation/anim_draw.c')
-rw-r--r--source/blender/editors/animation/anim_draw.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/source/blender/editors/animation/anim_draw.c b/source/blender/editors/animation/anim_draw.c
index 9b307b92bec..9c923d3492b 100644
--- a/source/blender/editors/animation/anim_draw.c
+++ b/source/blender/editors/animation/anim_draw.c
@@ -25,6 +25,11 @@
*
* ***** END GPL LICENSE BLOCK *****
*/
+
+/** \file blender/editors/animation/anim_draw.c
+ * \ingroup edanimation
+ */
+
#include "BLO_sys_types.h"
#include "DNA_anim_types.h"
@@ -95,7 +100,7 @@ void ANIM_timecode_string_from_frame (char *str, Scene *scene, int power, short
* to cope with 'half' frames, etc., which should be fine in most cases
*/
seconds= (int)cfra;
- frames= (int)floor( ((cfra - seconds) * FPS) + 0.5f );
+ frames= (int)floor( (((double)cfra - (double)seconds) * FPS) + 0.5 );
}
else {
/* seconds (with pixel offset rounding) */
@@ -394,9 +399,9 @@ float ANIM_unit_mapping_get_factor (Scene *scene, ID *id, FCurve *fcu, short res
/* if the radians flag is not set, default to using degrees which need conversions */
if ((scene) && (scene->unit.system_rotation == USER_UNIT_ROT_RADIANS) == 0) {
if (restore)
- return M_PI / 180.0f; /* degrees to radians */
+ return M_PI / 180.0; /* degrees to radians */
else
- return 180.0f / M_PI; /* radians to degrees */
+ return 180.0 / M_PI; /* radians to degrees */
}
}
@@ -465,7 +470,7 @@ void ANIM_unit_mapping_apply_fcurve (Scene *scene, ID *id, FCurve *fcu, short fl
// TODO: only sel?
if (fcu->fpt) {
FPoint *fpt;
- int i;
+ unsigned int i;
for (i=0, fpt=fcu->fpt; i < fcu->totvert; i++, fpt++) {
/* apply unit mapping */