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:
authorJoshua Leung <aligorith@gmail.com>2014-01-15 05:54:00 +0400
committerJoshua Leung <aligorith@gmail.com>2014-01-15 05:54:00 +0400
commit9e8428b09ab60111a2160722c7910144646646be (patch)
tree646029e89e0ad6da8d7ca6d1120ce7fb108f8fe9 /source/blender/editors/gpencil
parentfcec99d9cc491755c7b63d46056c973701aca509 (diff)
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.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/editaction_gpencil.c2
1 files changed, 2 insertions, 0 deletions
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;
}