[Bf-blender-cvs] [8b06f63e98e] greasepencil-object: GPencil: Add small offset to sliders

Antonio Vazquez noreply at git.blender.org
Wed Nov 27 17:02:53 CET 2019


Commit: 8b06f63e98e0f2022df3df0bc75789f221940101
Author: Antonio Vazquez
Date:   Wed Nov 27 17:02:47 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB8b06f63e98e0f2022df3df0bc75789f221940101

GPencil: Add small offset to sliders

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

M	source/blender/editors/animation/anim_channels_defines.c

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

diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c
index 79000847866..7c8d5507f2c 100644
--- a/source/blender/editors/animation/anim_channels_defines.c
+++ b/source/blender/editors/animation/anim_channels_defines.c
@@ -5057,6 +5057,9 @@ void ANIM_channel_draw_widgets(const bContext *C,
         }
         /* Special for Grease Pencil Layer */
         else if (ale->type == ANIMTYPE_GPLAYER) {
+          /* Add some offset to make it more pleasing to the eye. */
+          offset += SLIDER_WIDTH / 2.1f;
+
           char *gp_rna_path = NULL;
           bGPDlayer *gpl = (bGPDlayer *)ale->data;
           const short width = SLIDER_WIDTH / 4;



More information about the Bf-blender-cvs mailing list