diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-10-23 15:00:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-10-29 13:10:15 +0300 |
commit | ff5a34e3704cff2afcb82f3bb1a760416ef57c03 (patch) | |
tree | ecf6d73f918527dfc763a6c42471792b9479809a | |
parent | 4aac73a86f00157572db717260e1442998f0e12c (diff) |
Fix related to T46538: do not popup choice menu of mark/clear seam UV editor op invoke when prop is already set!
-rw-r--r-- | source/blender/editors/uvedit/uvedit_ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c index 728e3662ce6..3fc0b654b82 100644 --- a/source/blender/editors/uvedit/uvedit_ops.c +++ b/source/blender/editors/uvedit/uvedit_ops.c @@ -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); |