Fix tool-system error running in background mode
This commit is contained in:
parent
00db85ea81
commit
51acd54760
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue