[Bf-blender-cvs] [ff5a34e] blender-v2.76-release: Fix related to T46538: do not popup choice menu of mark/clear seam UV editor op invoke when prop is already set!

Bastien Montagne noreply at git.blender.org
Thu Oct 29 12:07:52 CET 2015


Commit: ff5a34e3704cff2afcb82f3bb1a760416ef57c03
Author: Bastien Montagne
Date:   Fri Oct 23 14:00:28 2015 +0200
Branches: blender-v2.76-release
https://developer.blender.org/rBff5a34e3704cff2afcb82f3bb1a760416ef57c03

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

===================================================================

M	source/blender/editors/uvedit/uvedit_ops.c

===================================================================

diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c
index 728e366..3fc0b65 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);




More information about the Bf-blender-cvs mailing list