Tool System: per space/mode tool support
[blender.git] / source / blender / editors / object / object_edit.c
index e87a24b3af0a9d196c69939e581a90114d6f6c3f..b9a7da0261184804ac644c6424b05b279ef3eaa8 100644 (file)
@@ -481,6 +481,8 @@ 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);
+
        return OPERATOR_FINISHED;
 }
 
@@ -579,6 +581,8 @@ 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);
+
        return OPERATOR_FINISHED;
 }