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>2011-05-18 14:56:26 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-05-18 14:56:26 +0400
commit178ba76b09fc923213a26257bbd5b82d0ad26bf0 (patch)
tree61b594404c29b920eeb25499180c2079f68d436a /source/blender/editors/util
parent304ce06a5a026041fb0d0410c6a4600e995e1534 (diff)
RNA: pass Main rather than Context to register/unregister callbacks.
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r--source/blender/editors/util/undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/util/undo.c b/source/blender/editors/util/undo.c
index 60f551afa6e..9ac44f482a1 100644
--- a/source/blender/editors/util/undo.c
+++ b/source/blender/editors/util/undo.c
@@ -260,7 +260,7 @@ int ED_undo_valid(const bContext *C, const char *undoname)
static int ed_undo_exec(bContext *C, wmOperator *UNUSED(op))
{
/* "last operator" should disappear, later we can tie ths with undo stack nicer */
- WM_operator_stack_clear(C);
+ WM_operator_stack_clear(CTX_wm_manager(C));
return ed_undo_step(C, 1, NULL);
}