[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43632] trunk/blender/source/blender/ makesrna/intern/rna_mesh.c: In order to maintain consistency with other uses of .remove(), these functions will be removed and reimplemented after the BMesh merge.

Andrew Hale TrumanBlending at gmail.com
Mon Jan 23 14:29:31 CET 2012


Revision: 43632
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43632
Author:   trumanblending
Date:     2012-01-23 13:29:29 +0000 (Mon, 23 Jan 2012)
Log Message:
-----------
In order to maintain consistency with other uses of .remove(), these functions will be removed and reimplemented after the BMesh merge.

The main issue in an implementation of these functions is the need to constantly edit the vertex array and subsequently update the face and edge arrays.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_mesh.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_mesh.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_mesh.c	2012-01-23 13:25:06 UTC (rev 43631)
+++ trunk/blender/source/blender/makesrna/intern/rna_mesh.c	2012-01-23 13:29:29 UTC (rev 43632)
@@ -1699,10 +1699,11 @@
 	func= RNA_def_function(srna, "add", "ED_mesh_vertices_add");
 	RNA_def_function_flag(func, FUNC_USE_REPORTS);
 	RNA_def_int(func, "count", 0, 0, INT_MAX, "Count", "Number of vertices to add", 0, INT_MAX);
-
+#if 0 // Remove until BMesh merge
 	func= RNA_def_function(srna, "remove", "ED_mesh_vertices_remove");
 	RNA_def_function_flag(func, FUNC_USE_REPORTS);
 	RNA_def_int(func, "count", 0, 0, INT_MAX, "Count", "Number of vertices to remove", 0, INT_MAX);
+#endif
 }
 
 /* mesh.edges */
@@ -1722,10 +1723,11 @@
 	func= RNA_def_function(srna, "add", "ED_mesh_edges_add");
 	RNA_def_function_flag(func, FUNC_USE_REPORTS);
 	RNA_def_int(func, "count", 0, 0, INT_MAX, "Count", "Number of edges to add", 0, INT_MAX);
-
+#if 0 // Remove until BMesh merge
 	func= RNA_def_function(srna, "remove", "ED_mesh_edges_remove");
 	RNA_def_function_flag(func, FUNC_USE_REPORTS);
 	RNA_def_int(func, "count", 0, 0, INT_MAX, "Count", "Number of edges to remove", 0, INT_MAX);
+#endif
 }
 
 /* mesh.faces */
@@ -1755,10 +1757,11 @@
 	func= RNA_def_function(srna, "add", "ED_mesh_faces_add");
 	RNA_def_function_flag(func, FUNC_USE_REPORTS);
 	RNA_def_int(func, "count", 0, 0, INT_MAX, "Count", "Number of faces to add", 0, INT_MAX);
-
+#if 0 // Remove until BMesh merge
 	func= RNA_def_function(srna, "remove", "ED_mesh_faces_remove");
 	RNA_def_function_flag(func, FUNC_USE_REPORTS);
 	RNA_def_int(func, "count", 0, 0, INT_MAX, "Count", "Number of faces to remove", 0, INT_MAX);
+#endif
 }
 
 /* mesh.vertex_colors */



More information about the Bf-blender-cvs mailing list