Commit: 3586981e8fbb4047495502b46d480509b1bd0b0e Author: Antonio Vazquez Date: Fri Feb 2 11:22:34 2018 +0100 Branches: greasepencil-object https://developer.blender.org/rB3586981e8fbb4047495502b46d480509b1bd0b0e
Cleanup: Remove duplicate operation It was stupid add and sub the same value =================================================================== M source/blender/editors/gpencil/gpencil_colorpick.c =================================================================== diff --git a/source/blender/editors/gpencil/gpencil_colorpick.c b/source/blender/editors/gpencil/gpencil_colorpick.c index a24a4b20f06..3b571e5ae1f 100644 --- a/source/blender/editors/gpencil/gpencil_colorpick.c +++ b/source/blender/editors/gpencil/gpencil_colorpick.c @@ -308,7 +308,7 @@ static tGPDpick *gp_session_init_colorpick(bContext *C, wmOperator *op, const wm CLAMP_MIN(tgpk->col, 1); /* define panel size */ - int width = (GP_BOX_SIZE * tgpk->col) + (GP_BOX_GAP * (tgpk->col + 1)) - GP_BOX_GAP; + int width = (GP_BOX_SIZE * tgpk->col) + (GP_BOX_GAP * tgpk->col); int height = (GP_BOX_SIZE * tgpk->row) + (GP_BOX_GAP * (tgpk->row + 1)) - (GP_BOX_GAP / 2); tgpk->panel.xmin = tgpk->center[0] - (width / 2) + tgpk->rect.xmin; tgpk->panel.ymin = tgpk->center[1] - (height / 2) + tgpk->rect.ymin; _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs