Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2009-09-12 16:54:43 +0400
committerThomas Dinges <blender@dingto.org>2009-09-12 16:54:43 +0400
commit2ca79ec1def97a24e64722613edc6fb5fb714314 (patch)
treed9fcd1236c2abf6ce82c1f703afe4bda82b2bed2
parent0bc8fd08e79d18507851714a15a18dc1054a4e3a (diff)
2.5 Notifier:blender2.5
* 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.
-rw-r--r--source/blender/editors/space_buttons/space_buttons.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c
index 385f55b71c1..d4ad77daca7 100644
--- a/source/blender/editors/space_buttons/space_buttons.c
+++ b/source/blender/editors/space_buttons/space_buttons.c
@@ -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: