diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-03 19:02:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-03 19:02:16 +0300 |
commit | 51acd547605a9c3b1644fba9d6e3168e37973c68 (patch) | |
tree | e22e46a273582f4b10cf22527de296681efd2f72 /source/blender/editors/object | |
parent | 00db85ea81dd8b743dec3b196bff34f396353dcc (diff) |
Fix tool-system error running in background mode
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 0ca797e43b6..ef9d32f7148 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -709,7 +709,9 @@ static int editmode_toggle_exec(bContext *C, wmOperator *op) WM_msg_publish_rna_prop(mbus, &obact->id, obact, Object, mode); - WM_toolsystem_update_from_context_view3d(C); + if (G.background == false) { + WM_toolsystem_update_from_context_view3d(C); + } return OPERATOR_FINISHED; } @@ -809,7 +811,9 @@ static int posemode_exec(bContext *C, wmOperator *op) WM_msg_publish_rna_prop(mbus, &obact->id, obact, Object, mode); - WM_toolsystem_update_from_context_view3d(C); + if (G.background == false) { + WM_toolsystem_update_from_context_view3d(C); + } return OPERATOR_FINISHED; } |