2.5 Notifier:
authorThomas Dinges <blender@dingto.org>
Sat, 12 Sep 2009 12:54:43 +0000 (12:54 +0000)
committerThomas Dinges <blender@dingto.org>
Sat, 12 Sep 2009 12:54:43 +0000 (12:54 +0000)
* Added a general Refresh Tag for the Property-Buttons area, needed if more than 1 property window with the same content is open. Not all RNA properties have a ND_ Notifier yet, so i guess this is the best solution for now.

source/blender/editors/space_buttons/space_buttons.c

index 385f55b71c1963fa413f6722e8cfc245840b3829..d4ad77daca78d17c2949a790983fc6f113c156ec 100644 (file)
@@ -319,6 +319,9 @@ static void buttons_area_listener(ScrArea *sa, wmNotifier *wmn)
        /* context changes */
        switch(wmn->category) {
                case NC_SCENE:
+                       /* lazy general redraw tag here, in case more than 1 propertie window is opened 
+                       Not all RNA props have a ND_sub notifier(yet) */
+                       ED_area_tag_redraw(sa);
                        switch(wmn->data) {
                                case ND_FRAME:
                                case ND_MODE:
@@ -333,10 +336,14 @@ static void buttons_area_listener(ScrArea *sa, wmNotifier *wmn)
                        }
                        break;
                case NC_OBJECT:
+                       ED_area_tag_redraw(sa);
+                       /* lazy general redraw tag here, in case more than 1 propertie window is opened 
+                       Not all RNA props have a ND_ notifier(yet) */
                        switch(wmn->data) {
                                case ND_TRANSFORM:
                                case ND_BONE_ACTIVE:
                                case ND_BONE_SELECT:
+                               case ND_MODIFIER:
                                case ND_CONSTRAINT:
                                        ED_area_tag_redraw(sa);
                                        break;
@@ -356,7 +363,6 @@ static void buttons_area_listener(ScrArea *sa, wmNotifier *wmn)
                        break;
                case NC_MATERIAL:
                        ED_area_tag_redraw(sa);
-                       
                        switch(wmn->data) {
                                case ND_SHADING:
                                case ND_SHADING_DRAW: