[Bf-blender-cvs] [a9d0ba4] soc-2016-uv_tools: Rename UV_OT_shortest_path to UV_OT_select_shortest_path

Phil Gosch noreply at git.blender.org
Mon Jun 6 19:57:50 CEST 2016


Commit: a9d0ba4dc2030a4b111d4532d5f779eb2673be58
Author: Phil Gosch
Date:   Mon Jun 6 19:57:25 2016 +0200
Branches: soc-2016-uv_tools
https://developer.blender.org/rBa9d0ba4dc2030a4b111d4532d5f779eb2673be58

Rename UV_OT_shortest_path to UV_OT_select_shortest_path

Should have been commited with the UI menu entry commit...

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

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 b76ea8d..c720834 100644
--- a/source/blender/editors/uvedit/uvedit_ops.c
+++ b/source/blender/editors/uvedit/uvedit_ops.c
@@ -1601,17 +1601,18 @@ static int uv_shortest_path_exec(bContext *C, wmOperator *op)
 	}
 }
 
-static void UV_OT_shortest_path(wmOperatorType *ot)
+static void UV_OT_select_shortest_path(wmOperatorType *ot)
 {
 	/* identifiers */
 	ot->name = "Select Shortest Path";
 	ot->description = "Select the shortest path between the current selection";
-	ot->idname = "UV_OT_shortest_path";
+	ot->idname = "UV_OT_select_shortest_path";
 	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 	
 	/* api callbacks */
 	ot->exec = uv_shortest_path_exec;
-	ot->poll = ED_operator_uvedit_space_image;
+	//ot->poll = ED_operator_uvedit_space_image;
+	ot->poll = ED_operator_uvedit;
 }
 
 /* ******************** align operator **************** */
@@ -4388,7 +4389,7 @@ void ED_operatortypes_uvedit(void)
 	WM_operatortype_append(UV_OT_circle_select);
 	WM_operatortype_append(UV_OT_select_more);
 	WM_operatortype_append(UV_OT_select_less);
-	WM_operatortype_append(UV_OT_shortest_path);
+	WM_operatortype_append(UV_OT_select_shortest_path);
 
 	WM_operatortype_append(UV_OT_snap_cursor);
 	WM_operatortype_append(UV_OT_snap_selected);




More information about the Bf-blender-cvs mailing list