Fix T62116: Delete ruler ignored on edit-mode toggle

D6129 by @smramsay
This commit is contained in:
Campbell Barton
2019-10-30 02:08:11 +11:00
parent f17aac33a1
commit aa841e2bd5

View File

@@ -1183,6 +1183,10 @@ static int view3d_ruler_remove_invoke(bContext *C, wmOperator *op, const wmEvent
else {
ruler_item_remove(C, gzgroup, ruler_item);
}
/* Update the annotation layer. */
view3d_ruler_to_gpencil(C, gzgroup);
ED_region_tag_redraw(ar);
return OPERATOR_FINISHED;
}