[Bf-blender-cvs] [9e8428b] master: Code cleanup - Commented out some code which wasn't actually doing anything

Joshua Leung noreply at git.blender.org
Wed Jan 15 03:18:58 CET 2014


Commit: 9e8428b09ab60111a2160722c7910144646646be
Author: Joshua Leung
Date:   Wed Jan 15 14:54:00 2014 +1300
https://developer.blender.org/rB9e8428b09ab60111a2160722c7910144646646be

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.

===================================================================

M	source/blender/editors/gpencil/editaction_gpencil.c

===================================================================

diff --git a/source/blender/editors/gpencil/editaction_gpencil.c b/source/blender/editors/gpencil/editaction_gpencil.c
index a03a80b..cb3135c 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;
 }




More information about the Bf-blender-cvs mailing list