quiet float -> double conversion warnings and do some osl style edits.

This commit is contained in:
Campbell Barton
2012-12-03 13:58:08 +00:00
parent 6213c6d69b
commit 4a9c522125
5 changed files with 11 additions and 11 deletions

View File

@@ -477,7 +477,7 @@ static short snap_gpf_nearestsec(bGPDframe *gpf, Scene *scene)
{
float secf = (float)FPS;
if (gpf->flag & GP_FRAME_SELECT)
gpf->framenum = (int)(floor(gpf->framenum / secf + 0.5f) * secf);
gpf->framenum = (int)(floorf(gpf->framenum / secf + 0.5f) * secf);
return 0;
}

View File

@@ -265,7 +265,7 @@ static short snap_masklayer_nearestsec(MaskLayerShape *masklay_shape, Scene *sce
{
float secf = (float)FPS;
if (masklay_shape->flag & MASK_SHAPE_SELECT)
masklay_shape->frame = (int)(floor(masklay_shape->frame / secf + 0.5f) * secf);
masklay_shape->frame = (int)(floorf(masklay_shape->frame / secf + 0.5f) * secf);
return 0;
}