[Bf-blender-cvs] [fc5c5f0636b] master: Animation: avoid WM notification when nothing changed
Sybren A. Stüvel
noreply at git.blender.org
Mon Oct 12 12:36:53 CEST 2020
Commit: fc5c5f0636bf03539d972293bd07b428b71877a9
Author: Sybren A. Stüvel
Date: Thu Oct 8 15:03:21 2020 +0200
Branches: master
https://developer.blender.org/rBfc5c5f0636bf03539d972293bd07b428b71877a9
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.
===================================================================
M source/blender/editors/animation/anim_channels_edit.c
===================================================================
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 */
More information about the Bf-blender-cvs
mailing list