From 9e8428b09ab60111a2160722c7910144646646be Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 15 Jan 2014 14:54:00 +1300 Subject: Code cleanup - Commented out some code which wasn't actually doing anything gpf->framenum is an int, not a float. Hence, this type of rounding has no effect. --- source/blender/editors/gpencil/editaction_gpencil.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/gpencil') diff --git a/source/blender/editors/gpencil/editaction_gpencil.c b/source/blender/editors/gpencil/editaction_gpencil.c index a03a80bfbbc..cb3135c710d 100644 --- a/source/blender/editors/gpencil/editaction_gpencil.c +++ b/source/blender/editors/gpencil/editaction_gpencil.c @@ -471,8 +471,10 @@ void paste_gpdata(Scene *scene) static short snap_gpf_nearest(bGPDframe *gpf, Scene *UNUSED(scene)) { +#if 0 /* XXX: gpf->framenum is already an int! */ if (gpf->flag & GP_FRAME_SELECT) gpf->framenum = (int)(floor(gpf->framenum + 0.5)); +#endif return 0; } -- cgit v1.2.3