From fc5c5f0636bf03539d972293bd07b428b71877a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 8 Oct 2020 15:03:21 +0200 Subject: Animation: avoid WM notification when nothing changed Avoid WM notification when a dummy channel is clicked in the animation channel list (dopesheet, graph editor) if that channel has no animation data. --- source/blender/editors/animation/anim_channels_edit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/editors/animation') diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c index ae27d0e426d..92b37628263 100644 --- a/source/blender/editors/animation/anim_channels_edit.c +++ b/source/blender/editors/animation/anim_channels_edit.c @@ -2932,8 +2932,7 @@ static int click_select_channel_dummy(bAnimContext *ac, const short /* eEditKeyframes_Select or -1 */ selectmode) { if (ale->adt == NULL) { - /* TODO(Sybren): this should return 0, as nothing changed. */ - return (ND_ANIMCHAN | NA_SELECTED); + return 0; } /* select/deselect */ -- cgit v1.2.3