Skip to content
Snippets Groups Projects
Commit 2ca79ec1 authored by Thomas Dinges's avatar Thomas Dinges
Browse files

2.5 Notifier:

* 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. 
parent 0bc8fd08
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment