Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-10-08 16:03:21 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-10-12 13:36:46 +0300
commitfc5c5f0636bf03539d972293bd07b428b71877a9 (patch)
tree123fcaecd127f93b89d0660ab606d14975f71a09 /source/blender/editors/animation
parent1db26e1698f68a57e3707b11852ed4160e455f9b (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.
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r--source/blender/editors/animation/anim_channels_edit.c3
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 */