[Bf-blender-cvs] [7e49ba94b36] greasepencil-object: Small adjust to panel size

Antonio Vazquez noreply at git.blender.org
Thu Jan 11 11:56:14 CET 2018


Commit: 7e49ba94b36cb490c667cac694eee140745aba6b
Author: Antonio Vazquez
Date:   Thu Jan 11 11:55:58 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB7e49ba94b36cb490c667cac694eee140745aba6b

Small adjust to panel size

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

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 d7a523bbda5..14d35776a2f 100644
--- a/source/blender/editors/gpencil/gpencil_colorpick.c
+++ b/source/blender/editors/gpencil/gpencil_colorpick.c
@@ -311,8 +311,8 @@ static tGPDpick *gp_session_init_colorpick(bContext *C, wmOperator *op)
 	/* define panel size (vertical right) */
 	tgpk->panel.xmin = tgpk->rect.xmax - (GP_BOX_SIZE * tgpk->col ) - (GP_BOX_GAP * (tgpk->col + 1));
 	tgpk->panel.ymin = tgpk->rect.ymin;
-	tgpk->panel.xmax = tgpk->rect.xmax;
-	tgpk->panel.ymax = tgpk->rect.ymax;
+	tgpk->panel.xmax = tgpk->rect.xmax + 1;
+	tgpk->panel.ymax = tgpk->rect.ymax + 1;
 
 	/* load color table */
 	tGPDpickColor *tcolor = tgpk->colors;



More information about the Bf-blender-cvs mailing list