[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40496] branches/bmesh/blender: fix script error and quiet warnings about "." description ending.

Campbell Barton ideasman42 at gmail.com
Fri Sep 23 15:31:48 CEST 2011


Revision: 40496
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40496
Author:   campbellbarton
Date:     2011-09-23 13:31:48 +0000 (Fri, 23 Sep 2011)
Log Message:
-----------
fix script error and quiet warnings about "." description ending.

Modified Paths:
--------------
    branches/bmesh/blender/release/scripts/startup/bl_ui/space_view3d.py
    branches/bmesh/blender/source/blender/editors/mesh/bmesh_select.c
    branches/bmesh/blender/source/blender/editors/mesh/bmesh_tools.c
    branches/bmesh/blender/source/blender/editors/mesh/editbmesh_add.c
    branches/bmesh/blender/source/blender/editors/mesh/loopcut.c
    branches/bmesh/blender/source/blender/editors/uvedit/uvedit_ops.c
    branches/bmesh/blender/source/blender/editors/uvedit/uvedit_unwrap_ops.c
    branches/bmesh/blender/source/blender/makesrna/intern/rna_mesh.c
    branches/bmesh/blender/source/blender/makesrna/intern/rna_ui_api.c

Modified: branches/bmesh/blender/release/scripts/startup/bl_ui/space_view3d.py
===================================================================
--- branches/bmesh/blender/release/scripts/startup/bl_ui/space_view3d.py	2011-09-23 13:29:28 UTC (rev 40495)
+++ branches/bmesh/blender/release/scripts/startup/bl_ui/space_view3d.py	2011-09-23 13:31:48 UTC (rev 40496)
@@ -1479,9 +1479,9 @@
         layout.operator_context = 'INVOKE_REGION_WIN'
 
         layout.operator("mesh.subdivide", text="Subdivide")
-		"""
+        """
         layout.operator("mesh.subdivide", text="Subdivide Smooth").smoothness = 1.0
-        ""
+        """
         layout.operator("mesh.merge", text="Merge...")
         layout.operator("mesh.remove_doubles")
         layout.operator("mesh.hide", text="Hide")

Modified: branches/bmesh/blender/source/blender/editors/mesh/bmesh_select.c
===================================================================
--- branches/bmesh/blender/source/blender/editors/mesh/bmesh_select.c	2011-09-23 13:29:28 UTC (rev 40495)
+++ branches/bmesh/blender/source/blender/editors/mesh/bmesh_select.c	2011-09-23 13:31:48 UTC (rev 40496)
@@ -867,7 +867,7 @@
 	ot->invoke= WM_menu_invoke;
 	ot->exec= select_similar_exec;
 	ot->poll= ED_operator_editmesh;
-	ot->description= "Select similar vertices, edges or faces by property types.";
+	ot->description= "Select similar vertices, edges or faces by property types";
 	
 	/* flags */
 	ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -962,7 +962,7 @@
 	/* api callbacks */
 	ot->exec= loop_multiselect;
 	ot->poll= ED_operator_editmesh;
-	ot->description= "Select a loop of connected edges by connection type.";
+	ot->description= "Select a loop of connected edges by connection type";
 	
 	/* flags */
 	ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1050,7 +1050,7 @@
 	/* api callbacks */
 	ot->invoke= mesh_select_loop_invoke;
 	ot->poll= ED_operator_editmesh;
-	ot->description= "Select a loop of connected edges.";
+	ot->description= "Select a loop of connected edges";
 	
 	/* flags */
 	ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1422,7 +1422,7 @@
 	/* api callbacks */
 	ot->invoke= mesh_shortest_path_select_invoke;
 	ot->poll= ED_operator_editmesh;
-	ot->description= "Select shortest path between two selections.";
+	ot->description= "Select shortest path between two selections";
 	
 	/* flags */
 	ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1701,7 +1701,7 @@
 	/* identifiers */
 	ot->name= "Select Inverse";
 	ot->idname= "MESH_OT_select_inverse";
-	ot->description= "Select inverse of (un)selected vertices, edges or faces.";
+	ot->description= "Select inverse of (un)selected vertices, edges or faces";
 	
 	/* api callbacks */
 	ot->exec= select_inverse_mesh_exec;
@@ -1781,7 +1781,7 @@
 	/* api callbacks */
 	ot->invoke= select_linked_pick_invoke;
 	ot->poll= ED_operator_editmesh;
-	ot->description= "select/deselect all vertices linked to the edge under the mouse cursor.";
+	ot->description= "select/deselect all vertices linked to the edge under the mouse cursor";
 	
 	/* flags */
 	ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1837,7 +1837,7 @@
 	/* api callbacks */
 	ot->exec= select_linked_exec;
 	ot->poll= ED_operator_editmesh;
-	ot->description= "Select all vertices linked to the active mesh.";
+	ot->description= "Select all vertices linked to the active mesh";
 	
 	/* flags */
 	ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1874,7 +1874,7 @@
 	/* identifiers */
 	ot->name= "Select More";
 	ot->idname= "MESH_OT_select_more";
-	ot->description= "Select more vertices, edges or faces connected to initial selection.";
+	ot->description= "Select more vertices, edges or faces connected to initial selection";
 
 	/* api callbacks */
 	ot->exec= select_more;
@@ -1911,7 +1911,7 @@
 	/* identifiers */
 	ot->name= "Select Less";
 	ot->idname= "MESH_OT_select_less";
-	ot->description= "Deselect vertices, edges or faces at the boundary of each selection region.";
+	ot->description= "Deselect vertices, edges or faces at the boundary of each selection region";
 
 	/* api callbacks */
 	ot->exec= select_less;
@@ -2199,7 +2199,7 @@
 	int nth= RNA_int_get(op->ptr, "nth");
 
 	if(EM_deselect_nth(em, nth) == 0) {
-		BKE_report(op->reports, RPT_ERROR, "Mesh has no active vert/edge/face.");
+		BKE_report(op->reports, RPT_ERROR, "Mesh has no active vert/edge/face");
 		return OPERATOR_CANCELLED;
 	}
 
@@ -2289,7 +2289,7 @@
 {
 	/* identifiers */
 	ot->name= "Select Sharp Edges";
-	ot->description= "Marked selected edges as sharp.";
+	ot->description= "Marked selected edges as sharp";
 	ot->idname= "MESH_OT_edges_select_sharp";
 	
 	/* api callbacks */
@@ -2370,7 +2370,7 @@
 {
 	/* identifiers */
 	ot->name= "Select Linked Flat Faces";
-	ot->description= "Select linked faces by angle.";
+	ot->description= "Select linked faces by angle";
 	ot->idname= "MESH_OT_faces_select_linked_flat";
 	
 	/* api callbacks */
@@ -2420,7 +2420,7 @@
 {
 	/* identifiers */
 	ot->name= "Select Non Manifold";
-	ot->description= "Select all non-manifold vertices or edges.";
+	ot->description= "Select all non-manifold vertices or edges";
 	ot->idname= "MESH_OT_select_non_manifold";
 	
 	/* api callbacks */
@@ -2477,7 +2477,7 @@
 {
 	/* identifiers */
 	ot->name= "Select Random";
-	ot->description= "Randomly select vertices.";
+	ot->description= "Randomly select vertices";
 	ot->idname= "MESH_OT_select_random";
 
 	/* api callbacks */
@@ -2488,8 +2488,8 @@
 	ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 	
 	/* props */
-	RNA_def_float_percentage(ot->srna, "percent", 50.f, 0.0f, 100.0f, "Percent", "Percentage of elements to select randomly.", 0.f, 100.0f);
-	RNA_def_boolean(ot->srna, "extend", 0, "Extend Selection", "Extend selection instead of deselecting everything first.");
+	RNA_def_float_percentage(ot->srna, "percent", 50.f, 0.0f, 100.0f, "Percent", "Percentage of elements to select randomly", 0.f, 100.0f);
+	RNA_def_boolean(ot->srna, "extend", 0, "Extend Selection", "Extend selection instead of deselecting everything first");
 }
 
 static int select_next_loop(bContext *C, wmOperator *UNUSED(op))

Modified: branches/bmesh/blender/source/blender/editors/mesh/bmesh_tools.c
===================================================================
--- branches/bmesh/blender/source/blender/editors/mesh/bmesh_tools.c	2011-09-23 13:29:28 UTC (rev 40495)
+++ branches/bmesh/blender/source/blender/editors/mesh/bmesh_tools.c	2011-09-23 13:31:48 UTC (rev 40496)
@@ -152,7 +152,7 @@
 {
 	/* identifiers */
 	ot->name= "Subdivide";
-	ot->description= "Subdivide selected edges.";
+	ot->description= "Subdivide selected edges";
 	ot->idname= "MESH_OT_subdivide";
 
 	/* api callbacks */
@@ -168,7 +168,7 @@
 	RNA_def_boolean(ot->srna, "quadtri", 0, "Quad/Tri Mode", "Tries to prevent ngons");
 	RNA_def_enum(ot->srna, "quadcorner", prop_mesh_cornervert_types, SUBD_STRAIGHT_CUT, "Quad Corner Type", "How to subdivide quad corners (anything other then Straight Cut will prevent ngons)");
 
-	RNA_def_float(ot->srna, "fractal", 0.0, 0.0f, FLT_MAX, "Fractal", "Fractal randomness factor.", 0.0f, 1000.0f);
+	RNA_def_float(ot->srna, "fractal", 0.0, 0.0f, FLT_MAX, "Fractal", "Fractal randomness factor", 0.0f, 1000.0f);
 	RNA_def_int(ot->srna, "seed", 0, 0, 10000, "Random Seed", "Seed for the random number generator", 0, 50);
 }
 
@@ -587,7 +587,7 @@
 {
 	/* identifiers */
 	ot->name= "Extrude Repeat Mesh";
-	ot->description= "Extrude selected vertices, edges or faces repeatedly.";
+	ot->description= "Extrude selected vertices, edges or faces repeatedly";
 	ot->idname= "MESH_OT_extrude_repeat";
 	
 	/* api callbacks */
@@ -837,7 +837,7 @@
 	/* identifiers */
 	ot->name= "Select/Deselect All";
 	ot->idname= "MESH_OT_select_all";
-	ot->description= "(de)select all vertices, edges or faces.";
+	ot->description= "(de)select all vertices, edges or faces";
 	
 	/* api callbacks */
 	ot->exec= toggle_select_all_exec;
@@ -1018,7 +1018,7 @@
 	
 	/* api callbacks */
 	ot->invoke= dupli_extrude_cursor;
-	ot->description= "Duplicate and extrude selected vertices, edges or faces towards the mouse cursor.";
+	ot->description= "Duplicate and extrude selected vertices, edges or faces towards the mouse cursor";
 	ot->poll= ED_operator_editmesh;
 	
 	/* flags */
@@ -1124,7 +1124,7 @@
 {
 	/* identifiers */
 	ot->name= "Delete";
-	ot->description= "Delete selected vertices, edges or faces.";
+	ot->description= "Delete selected vertices, edges or faces";
 	ot->idname= "MESH_OT_delete";
 	
 	/* api callbacks */
@@ -1166,7 +1166,7 @@
 {
 	/* identifiers */
 	ot->name= "Make Edge/Face";
-	ot->description= "Add an edge or face to selected.";
+	ot->description= "Add an edge or face to selected";
 	ot->idname= "MESH_OT_edge_face_add";
 	
 	/* api callbacks */
@@ -1216,7 +1216,7 @@
 {
 	/* identifiers */
 	ot->name= "Selection Mode";
-	ot->description= "Set the selection mode type.";
+	ot->description= "Set the selection mode type";
 	ot->idname= "MESH_OT_selection_type";
 	
 	/* api callbacks */
@@ -1277,7 +1277,7 @@
 	/* identifiers */
 	ot->name= "Mark Seam";
 	ot->idname= "MESH_OT_mark_seam";
-	ot->description= "(un)mark selected edges as a seam.";
+	ot->description= "(un)mark selected edges as a seam";
 	
 	/* api callbacks */
 	ot->exec= editbmesh_mark_seam;
@@ -1332,7 +1332,7 @@
 	/* identifiers */
 	ot->name= "Mark Sharp";
 	ot->idname= "MESH_OT_mark_sharp";
-	ot->description= "(un)mark selected edges as sharp.";
+	ot->description= "(un)mark selected edges as sharp";
 	
 	/* api callbacks */
 	ot->exec= editbmesh_mark_sharp;
@@ -1450,7 +1450,7 @@
 {
 	/* identifiers */
 	ot->name= "Duplicate";
-	ot->description= "Duplicate selected vertices, edges or faces.";
+	ot->description= "Duplicate selected vertices, edges or faces";
 	ot->idname= "MESH_OT_duplicate";
 	
 	/* api callbacks */
@@ -1575,7 +1575,7 @@
 {
 	/* identifiers */
 	ot->name= "Rotate Selected Edge";
-	ot->description= "Rotate selected edge or adjoining faces.";
+	ot->description= "Rotate selected edge or adjoining faces";
 	ot->idname= "MESH_OT_edge_rotate";
 
 	/* api callbacks */
@@ -1586,7 +1586,7 @@
 	ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 
 	/* props */
-	RNA_def_enum(ot->srna, "direction", direction_items, DIRECTION_CW, "direction", "direction to rotate edge around.");
+	RNA_def_enum(ot->srna, "direction", direction_items, DIRECTION_CW, "direction", "direction to rotate edge around");
 }
 
 /* swap is 0 or 1, if 1 it hides not selected */
@@ -1644,13 +1644,13 @@
 	/* api callbacks */
 	ot->exec= hide_mesh_exec;

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list