Code cleanup - Commented out some code which wasn't actually doing anything
authorJoshua Leung <aligorith@gmail.com>
Wed, 15 Jan 2014 01:54:00 +0000 (14:54 +1300)
committerJoshua Leung <aligorith@gmail.com>
Wed, 15 Jan 2014 01:54:00 +0000 (14:54 +1300)
gpf->framenum is an int, not a float. Hence, this type of rounding has no effect.

source/blender/editors/gpencil/editaction_gpencil.c

index a03a80bfbbc00b40d1ab604021bcfd2d45389dd5..cb3135c710d534ac77923e180ba440c0fa7b41a6 100644 (file)
@@ -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;
 }