diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-30 18:59:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-30 18:59:31 +0300 |
commit | 5940f6b3d9cfa99a1b893b6149d36ee0a8c51584 (patch) | |
tree | 0f57b988058f2099808be12a6a59f5043c70b457 /source/blender/editors/space_script | |
parent | 68c2f7a2d06fa1146f862e4f0959d9aeb60d7456 (diff) |
Fix T58683: Reload Scripts breaks toolbar button formatting
Add a function which clears internal cached operator pointers,
run before reloading scripts.
Diffstat (limited to 'source/blender/editors/space_script')
-rw-r--r-- | source/blender/editors/space_script/script_edit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_script/script_edit.c b/source/blender/editors/space_script/script_edit.c index 48248fe1dd2..2be05785d2b 100644 --- a/source/blender/editors/space_script/script_edit.c +++ b/source/blender/editors/space_script/script_edit.c @@ -106,6 +106,7 @@ static bool script_test_modal_operators(bContext *C) static int script_reload_exec(bContext *C, wmOperator *op) { + #ifdef WITH_PYTHON /* clear running operators */ @@ -114,6 +115,8 @@ static int script_reload_exec(bContext *C, wmOperator *op) return OPERATOR_CANCELLED; } + WM_script_tag_reload(); + /* TODO, this crashes on netrender and keying sets, need to look into why * disable for now unless running in debug mode */ WM_cursor_wait(1); |