add initial codes for rna_sensors
authorHamed Zaghaghi <hamed.zaghaghi@gmail.com>
Sat, 29 Nov 2008 02:01:39 +0000 (02:01 +0000)
committerHamed Zaghaghi <hamed.zaghaghi@gmail.com>
Sat, 29 Nov 2008 02:01:39 +0000 (02:01 +0000)
source/blender/makesrna/RNA_access.h
source/blender/makesrna/intern/makesrna.c
source/blender/makesrna/intern/rna_ID.c
source/blender/makesrna/intern/rna_internal.h
source/blender/makesrna/intern/rna_sensor.c [new file with mode: 0644]

index 703b0c70ffd2983c76905faea2c7b9bcbf83df89..76a3e58d453e5848cec0589ccb21b76e999c8a44 100644 (file)
@@ -75,6 +75,7 @@ extern StructRNA RNA_Node;
 extern StructRNA RNA_Screen;
 extern StructRNA RNA_Operator;
 extern StructRNA RNA_WindowManager;
+extern StructRNA RNA_Sensor;
 
 /* Pointer
  *
index bd426b20214ca956480c0cd8511150ab721e23c2..79da5af53ee632989255b90785383fe86a0713d7 100644 (file)
@@ -870,6 +870,7 @@ RNAProcessItem PROCESS_ITEMS[]= {
        {"rna_lamp.c", RNA_def_lamp},
        {"rna_screen.c", RNA_def_screen},
        {"rna_wm.c", RNA_def_wm},
+       {"rna_sensor.c", RNA_def_sensor},
        {NULL, NULL}};
 
 static int rna_preprocess(char *basedirectory, FILE *f)
index b5a5a41069fa069a2b9634f4d09fd4e82d3d520c..04dbb26e5a38c1cb347db5a155820a99c40facd1 100644 (file)
@@ -66,6 +66,7 @@ static StructRNA *rna_ID_refine(PointerRNA *ptr)
                case ID_SCE: return &RNA_Scene;
                case ID_SCR: return &RNA_Screen;
                case ID_WM: return &RNA_WindowManager;
+               case ID_SE: return &RNA_Sensor;
                default: return &RNA_ID;
        }
 }
index aedd80e0d025ca08e3adf2a76a726ca6896b0c95..9fecd149b13b393fe36511ae85c6977e7223f87b 100644 (file)
@@ -91,6 +91,7 @@ void RNA_def_rna(struct BlenderRNA *brna);
 void RNA_def_scene(struct BlenderRNA *brna);
 void RNA_def_screen(struct BlenderRNA *brna);
 void RNA_def_wm(struct BlenderRNA *brna);
+void RNA_def_sensor(struct BlenderRNA *brna);
 
 /* ID Properties */
 
diff --git a/source/blender/makesrna/intern/rna_sensor.c b/source/blender/makesrna/intern/rna_sensor.c
new file mode 100644 (file)
index 0000000..3457899
--- /dev/null
@@ -0,0 +1,49 @@
+/**
+ * $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_access.h"
+#include "RNA_define.h"
+#include "RNA_types.h"
+
+#include "rna_internal.h"
+
+#include "DNA_sensor_types.h"
+
+#ifdef RNA_RUNTIME
+
+#else
+
+void RNA_def_sensor(BlenderRNA *brna)
+{
+       StructRNA *srna;
+       PropertyRNA *prop;
+       
+       srna= RNA_def_struct(brna, "Sensor", "ID", "Sensor");
+
+}
+
+#endif
+