fix [#37030] Loop Cut and Slide doesn't clear header text if you click a blank area

This commit is contained in:
Campbell Barton 2013-10-10 21:04:39 +00:00
parent 830974bc1e
commit ecc5eb59c6
1 changed files with 3 additions and 4 deletions

View File

@ -537,7 +537,8 @@ static int loopcut_modal(bContext *C, wmOperator *op, const wmEvent *event)
if (event->val == KM_PRESS) {
/* finish */
ED_region_tag_redraw(lcd->ar);
ED_area_headerprint(CTX_wm_area(C), NULL);
if (lcd->eed) {
/* set for redo */
BM_mesh_elem_index_ensure(lcd->em->bm, BM_EDGE);
@ -550,9 +551,7 @@ static int loopcut_modal(bContext *C, wmOperator *op, const wmEvent *event)
else {
return ringcut_cancel(C, op);
}
ED_area_headerprint(CTX_wm_area(C), NULL);
return OPERATOR_FINISHED;
}