diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-22 10:16:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-22 10:16:49 +0400 |
commit | 761b380b841e5660356616a0e0b46880e5a01c4e (patch) | |
tree | 51b0f10430e1262d6700ec84daf75e35978a33cc /source/blender/makesrna/intern/rna_wm.c | |
parent | 3eb41c7a5f96c6a7199a81e8a73b1da3053806ea (diff) |
fix [#33841] Disabling and re-enabling live addon crashes blender (modal/draw handler)
Diffstat (limited to 'source/blender/makesrna/intern/rna_wm.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_wm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_wm.c b/source/blender/makesrna/intern/rna_wm.c index c0fb2a7238f..0c1c5d8f64a 100644 --- a/source/blender/makesrna/intern/rna_wm.c +++ b/source/blender/makesrna/intern/rna_wm.c @@ -853,8 +853,11 @@ static void rna_Operator_unregister(struct Main *bmain, StructRNA *type) /* update while blender is running */ wm = bmain->wm.first; - if (wm) + if (wm) { WM_operator_stack_clear(wm); + + WM_operator_handlers_clear(wm, ot); + } WM_main_add_notifier(NC_SCREEN | NA_EDITED, NULL); RNA_struct_free_extension(type, &ot->ext); |