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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-04-06 13:07:39 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-04-06 13:07:39 +0400
commit86b38129c6b781a35175d90fee406d48d565fc1c (patch)
treee0698d503b4aeac8774d5ae8e9415f1e3b5a46f2 /source/blender/windowmanager
parentc3f64b15ca1880118e9d7d781afb3e74672bc3c4 (diff)
Fix #21402: python operator redo properties not refreshed. Now sends a
NC_WM|ND_HISTORY notifier on registering an operator.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/WM_types.h1
-rw-r--r--source/blender/windowmanager/intern/wm.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h
index 78b19db5fc8..1bede614732 100644
--- a/source/blender/windowmanager/WM_types.h
+++ b/source/blender/windowmanager/WM_types.h
@@ -157,6 +157,7 @@ typedef struct wmNotifier {
#define ND_FILEREAD (1<<16)
#define ND_FILESAVE (2<<16)
#define ND_DATACHANGED (3<<16)
+#define ND_HISTORY (4<<16)
/* NC_SCREEN screen */
#define ND_SCREENBROWSE (1<<16)
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c
index cfeccfd7f62..39c5e69d982 100644
--- a/source/blender/windowmanager/intern/wm.c
+++ b/source/blender/windowmanager/intern/wm.c
@@ -124,6 +124,7 @@ void wm_operator_register(bContext *C, wmOperator *op)
/* so the console is redrawn */
WM_event_add_notifier(C, NC_SPACE|ND_SPACE_CONSOLE_REPORT, NULL);
+ WM_event_add_notifier(C, NC_WM|ND_HISTORY, NULL);
}
@@ -137,6 +138,7 @@ void WM_operator_stack_clear(bContext *C)
WM_operator_free(op);
}
+ WM_event_add_notifier(C, NC_WM|ND_HISTORY, NULL);
}
/* ****************************************** */