Fix T40519: Keyed parameter are not redrawed
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 6 Jun 2014 12:15:18 +0000 (18:15 +0600)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 6 Jun 2014 12:18:05 +0000 (18:18 +0600)
The issue has been introduced in 1fabfc9 by changing
notifiers being sent.

source/blender/editors/space_buttons/space_buttons.c

index 1257dcb5e4cb184d4de84cad0da25a5b89bfdfe1..1c3bad9757d255352da6653450e734d4bdccbd28 100644 (file)
@@ -358,7 +358,7 @@ static void buttons_area_listener(bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *
                case NC_ANIMATION:
                        switch (wmn->data) {
                                case ND_KEYFRAME:
-                                       if (wmn->action == NA_EDITED)
+                                       if (ELEM3(wmn->action, NA_EDITED, NA_ADDED, NA_REMOVED))
                                                ED_area_tag_redraw(sa);
                                        break;
                        }