[Bf-blender-cvs] [599d829] master: AnimEditors FModifiers toggle: Add a bit more space beside it so that it doesn't seem to collide with the mute toggle

Joshua Leung noreply at git.blender.org
Thu Aug 6 16:48:49 CEST 2015


Commit: 599d8291ad4c789eca425ac9865b669c59e4d3c0
Author: Joshua Leung
Date:   Fri Aug 7 02:38:23 2015 +1200
Branches: master
https://developer.blender.org/rB599d8291ad4c789eca425ac9865b669c59e4d3c0

AnimEditors FModifiers toggle: Add a bit more space beside it so that it doesn't seem to collide with the mute toggle

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

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 db222f9..ce868e2 100644
--- a/source/blender/editors/animation/anim_channels_defines.c
+++ b/source/blender/editors/animation/anim_channels_defines.c
@@ -4287,13 +4287,13 @@ void ANIM_channel_draw_widgets(const bContext *C, bAnimContext *ac, bAnimListEle
 				offset += ICON_WIDTH;
 				draw_setting_widget(ac, ale, acf, block, (int)v2d->cur.xmax - offset, ymid, ACHANNEL_SETTING_MUTE);
 			}
-
+			
 			/* modifiers disable */
 			if (acf->has_setting(ac, ale, ACHANNEL_SETTING_MOD_OFF)) {
-				offset += ICON_WIDTH;
+				offset += ICON_WIDTH * 1.2f; /* hack: extra spacing, to avoid touching the mute toggle */
 				draw_setting_widget(ac, ale, acf, block, (int)v2d->cur.xmax - offset, ymid, ACHANNEL_SETTING_MOD_OFF);
 			}
-
+			
 			/* ----------- */
 			
 			/* pinned... */




More information about the Bf-blender-cvs mailing list