[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25335] trunk/blender/source/blender/ makesrna/intern/rna_mesh.c: mesh.faces. active attribute for Michael Williamson to help port 2.4x UV unwrap scripts
Campbell Barton
ideasman42 at gmail.com
Sun Dec 13 15:13:27 CET 2009
Revision: 25335
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25335
Author: campbellbarton
Date: 2009-12-13 15:13:25 +0100 (Sun, 13 Dec 2009)
Log Message:
-----------
mesh.faces.active attribute for Michael Williamson to help port 2.4x UV unwrap scripts
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 2009-12-13 14:04:36 UTC (rev 25334)
+++ trunk/blender/source/blender/makesrna/intern/rna_mesh.c 2009-12-13 14:13:25 UTC (rev 25335)
@@ -1517,6 +1517,27 @@
RNA_def_property_ui_text(prop, "Materials", "");
}
+
+/* scene.objects */
+static void rna_def_mesh_faces(BlenderRNA *brna, PropertyRNA *cprop)
+{
+ StructRNA *srna;
+ PropertyRNA *prop;
+
+// FunctionRNA *func;
+// PropertyRNA *parm;
+
+ RNA_def_property_srna(cprop, "MeshFaces");
+ srna= RNA_def_struct(brna, "MeshFaces", NULL);
+ RNA_def_struct_sdna(srna, "Mesh");
+ RNA_def_struct_ui_text(srna, "Mesh Faces", "Collection of mesh faces.");
+
+ prop= RNA_def_property(srna, "active", PROP_INT, PROP_NONE);
+ RNA_def_property_int_sdna(prop, NULL, "act_face");
+ RNA_def_property_ui_text(prop, "Active Face", "The active face for this mesh");
+}
+
+
static void rna_def_mesh(BlenderRNA *brna)
{
StructRNA *srna;
@@ -1540,6 +1561,7 @@
RNA_def_property_collection_sdna(prop, NULL, "mface", "totface");
RNA_def_property_struct_type(prop, "MeshFace");
RNA_def_property_ui_text(prop, "Faces", "Faces of the mesh.");
+ rna_def_mesh_faces(brna, prop);
prop= RNA_def_property(srna, "sticky", PROP_COLLECTION, PROP_NONE);
RNA_def_property_collection_sdna(prop, NULL, "msticky", "totvert");
More information about the Bf-blender-cvs
mailing list