diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-10-08 16:03:21 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-10-12 13:36:46 +0300 |
commit | fc5c5f0636bf03539d972293bd07b428b71877a9 (patch) | |
tree | 123fcaecd127f93b89d0660ab606d14975f71a09 | |
parent | 1db26e1698f68a57e3707b11852ed4160e455f9b (diff) |
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.
-rw-r--r-- | source/blender/editors/animation/anim_channels_edit.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 */ |