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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user