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.
This commit is contained in:
2020-10-08 15:03:21 +02:00
parent 1db26e1698
commit fc5c5f0636

View File

@@ -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 */