[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17648] branches/blender2.5/blender: RNA

Andrea Weikert elubie at gmx.net
Sun Nov 30 17:38:56 CET 2008


Revision: 17648
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17648
Author:   elubie
Date:     2008-11-30 17:38:56 +0100 (Sun, 30 Nov 2008)

Log Message:
-----------
RNA
* DNA_lattice_types: added rna definitions for lattice u,v,w and some flags
* updated MSVC projectfiles

Modified Paths:
--------------
    branches/blender2.5/blender/projectfiles_vc9/blender/makesrna/RNA_makesrna.vcproj
    branches/blender2.5/blender/source/blender/makesrna/RNA_access.h
    branches/blender2.5/blender/source/blender/makesrna/intern/makesrna.c
    branches/blender2.5/blender/source/blender/makesrna/intern/rna_ID.c
    branches/blender2.5/blender/source/blender/makesrna/intern/rna_internal.h

Added Paths:
-----------
    branches/blender2.5/blender/source/blender/makesrna/intern/rna_lattice.c

Modified: branches/blender2.5/blender/projectfiles_vc9/blender/makesrna/RNA_makesrna.vcproj
===================================================================
--- branches/blender2.5/blender/projectfiles_vc9/blender/makesrna/RNA_makesrna.vcproj	2008-11-30 15:55:14 UTC (rev 17647)
+++ branches/blender2.5/blender/projectfiles_vc9/blender/makesrna/RNA_makesrna.vcproj	2008-11-30 16:38:56 UTC (rev 17648)
@@ -601,6 +601,10 @@
 				>
 			</File>
 			<File
+				RelativePath="..\..\..\source\blender\makesrna\intern\rna_controller.c"
+				>
+			</File>
+			<File
 				RelativePath="..\..\..\source\blender\makesrna\intern\rna_define.c"
 				>
 			</File>
@@ -617,6 +621,10 @@
 				>
 			</File>
 			<File
+				RelativePath="..\..\..\source\blender\makesrna\intern\rna_lattice.c"
+				>
+			</File>
+			<File
 				RelativePath="..\..\..\source\blender\makesrna\intern\rna_main.c"
 				>
 			</File>
@@ -637,6 +645,10 @@
 				>
 			</File>
 			<File
+				RelativePath="..\..\..\source\blender\makesrna\intern\rna_radio.c"
+				>
+			</File>
+			<File
 				RelativePath="..\..\..\source\blender\makesrna\intern\rna_rna.c"
 				>
 			</File>

Modified: branches/blender2.5/blender/source/blender/makesrna/RNA_access.h
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/RNA_access.h	2008-11-30 15:55:14 UTC (rev 17647)
+++ branches/blender2.5/blender/source/blender/makesrna/RNA_access.h	2008-11-30 16:38:56 UTC (rev 17648)
@@ -103,6 +103,8 @@
 extern StructRNA RNA_UnknownType;
 extern StructRNA RNA_WindowManager;
 
+extern StructRNA RNA_Lattice;
+
 /* Pointer
  *
  * These functions will fill in RNA pointers, this can be done in three ways:

Modified: branches/blender2.5/blender/source/blender/makesrna/intern/makesrna.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/makesrna.c	2008-11-30 15:55:14 UTC (rev 17647)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/makesrna.c	2008-11-30 16:38:56 UTC (rev 17648)
@@ -881,6 +881,7 @@
 	{"rna_controller.c", RNA_def_controller},
 	{"rna_group.c", RNA_def_group},
 	{"rna_lamp.c", RNA_def_lamp},
+	{"rna_lattice.c", RNA_def_lattice},
 	{"rna_main.c", RNA_def_main},
 	{"rna_material.c", RNA_def_material},
 	{"rna_mesh.c", RNA_def_mesh},
@@ -891,7 +892,7 @@
 	{"rna_scene.c", RNA_def_scene},
 	{"rna_screen.c", RNA_def_screen},
 	{"rna_sensor.c", RNA_def_sensor},
-	{"rna_wm.c", RNA_def_wm},
+	{"rna_wm.c", RNA_def_wm},	
 	{NULL, NULL}};
 
 static int rna_preprocess(char *basedirectory, FILE *f)

Modified: branches/blender2.5/blender/source/blender/makesrna/intern/rna_ID.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_ID.c	2008-11-30 15:55:14 UTC (rev 17647)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_ID.c	2008-11-30 16:38:56 UTC (rev 17648)
@@ -62,6 +62,7 @@
 		case ID_GR: return &RNA_Group;
 		case ID_LA: return &RNA_Lamp;
 		case ID_LI: return &RNA_Library;
+		case ID_LT: return &RNA_Lattice;
 		case ID_MA: return &RNA_Material;
 		case ID_NT: return &RNA_NodeTree;
 		case ID_ME: return &RNA_Mesh;

Modified: branches/blender2.5/blender/source/blender/makesrna/intern/rna_internal.h
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_internal.h	2008-11-30 15:55:14 UTC (rev 17647)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_internal.h	2008-11-30 16:38:56 UTC (rev 17648)
@@ -97,6 +97,7 @@
 void RNA_def_screen(struct BlenderRNA *brna);
 void RNA_def_sensor(struct BlenderRNA *brna);
 void RNA_def_wm(struct BlenderRNA *brna);
+void RNA_def_lattice(struct BlenderRNA *brna);
 
 /* ID Properties */
 

Added: branches/blender2.5/blender/source/blender/makesrna/intern/rna_lattice.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_lattice.c	                        (rev 0)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_lattice.c	2008-11-30 16:38:56 UTC (rev 17648)
@@ -0,0 +1,87 @@
+/**
+ * $Id$
+ *
+ * ***** BEGIN GPL LICENSE BLOCK *****
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ *
+ * Contributor(s): Blender Foundation (2008).
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+
+#include <stdlib.h>
+
+#include "RNA_define.h"
+#include "RNA_types.h"
+
+#include "rna_internal.h"
+
+#include "DNA_lattice_types.h"
+#include "DNA_key_types.h"
+
+#ifdef RNA_RUNTIME
+#else
+
+void RNA_def_lattice(BlenderRNA *brna)
+{
+	StructRNA *srna;
+	PropertyRNA *prop;
+
+	static EnumPropertyItem prop_keyblock_type_items[] = {
+		{KEY_LINEAR, "KEY_LINEAR", "Linear", ""},
+		{KEY_CARDINAL, "KEY_CARDINAL", "Cardinal", ""},
+		{KEY_BSPLINE, "KEY_BSPLINE", "BSpline", ""},
+		{0, NULL, NULL, NULL}};
+
+	srna= RNA_def_struct(brna, "Lattice", "ID", "Lattice");
+
+	prop= RNA_def_property(srna, "points_u", PROP_INT, PROP_NONE);
+	RNA_def_property_int_sdna(prop, NULL, "pntsu");
+	RNA_def_property_flag(prop, PROP_NOT_EDITABLE);
+	RNA_def_property_ui_text(prop, "U", "Points in U direction.");
+
+	prop= RNA_def_property(srna, "points_v", PROP_INT, PROP_NONE);
+	RNA_def_property_int_sdna(prop, NULL, "pntsv");
+	RNA_def_property_flag(prop, PROP_NOT_EDITABLE);
+	RNA_def_property_ui_text(prop, "V", "Points in V direction.");
+
+	prop= RNA_def_property(srna, "points_w", PROP_INT, PROP_NONE);
+	RNA_def_property_int_sdna(prop, NULL, "pntsw");
+	RNA_def_property_flag(prop, PROP_NOT_EDITABLE);
+	RNA_def_property_ui_text(prop, "W", "Points in W direction.");
+
+	prop= RNA_def_property(srna, "interpolation_type_u", PROP_ENUM, PROP_NONE);
+	RNA_def_property_enum_sdna(prop, NULL, "typeu", 0);
+	RNA_def_property_enum_items(prop, prop_keyblock_type_items);
+	RNA_def_property_ui_text(prop, "Interpolation Type U", "");
+
+	prop= RNA_def_property(srna, "interpolation_type_v", PROP_ENUM, PROP_NONE);
+	RNA_def_property_enum_sdna(prop, NULL, "typev", 0);
+	RNA_def_property_enum_items(prop, prop_keyblock_type_items);
+	RNA_def_property_ui_text(prop, "Interpolation Type V", "");
+
+	prop= RNA_def_property(srna, "interpolation_type_w", PROP_ENUM, PROP_NONE);
+	RNA_def_property_enum_sdna(prop, NULL, "typew", 0);
+	RNA_def_property_enum_items(prop, prop_keyblock_type_items);
+	RNA_def_property_ui_text(prop, "Interpolation Type W", "");
+
+	prop= RNA_def_property(srna, "outside", PROP_BOOLEAN, PROP_NONE);
+	RNA_def_property_boolean_sdna(prop, NULL, "flag", LT_OUTSIDE);
+	RNA_def_property_ui_text(prop, "Outside", "Only draw, and take into account, the outer vertices.");
+}
+
+#endif
+


Property changes on: branches/blender2.5/blender/source/blender/makesrna/intern/rna_lattice.c
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native





More information about the Bf-blender-cvs mailing list