Fix related to T46538: do not popup choice menu of mark/clear seam UV editor op invoke when prop is already set!

This commit is contained in:
Bastien Montagne 2015-10-23 14:00:28 +02:00
parent fbca69c69a
commit c4e1837e6a
1 changed files with 4 additions and 0 deletions

View File

@ -4195,6 +4195,10 @@ static int uv_mark_seam_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSE
uiPopupMenu *pup;
uiLayout *layout;
if (RNA_struct_property_is_set(op->ptr, "clear")) {
return uv_mark_seam_exec(C, op);
}
pup = UI_popup_menu_begin(C, IFACE_("Edges"), ICON_NONE);
layout = UI_popup_menu_layout(pup);