[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17608] branches/blender2.5/blender/source /blender/makesrna: add initial codes for rna_sensors

Hamed Zaghaghi hamed.zaghaghi at gmail.com
Sat Nov 29 03:01:40 CET 2008


Revision: 17608
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17608
Author:   zaghaghi
Date:     2008-11-29 03:01:39 +0100 (Sat, 29 Nov 2008)

Log Message:
-----------
add initial codes for rna_sensors

Modified Paths:
--------------
    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

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

Modified: branches/blender2.5/blender/source/blender/makesrna/RNA_access.h
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/RNA_access.h	2008-11-29 01:33:22 UTC (rev 17607)
+++ branches/blender2.5/blender/source/blender/makesrna/RNA_access.h	2008-11-29 02:01:39 UTC (rev 17608)
@@ -75,6 +75,7 @@
 extern StructRNA RNA_Screen;
 extern StructRNA RNA_Operator;
 extern StructRNA RNA_WindowManager;
+extern StructRNA RNA_bSensor;
 
 /* Pointer
  *

Modified: branches/blender2.5/blender/source/blender/makesrna/intern/makesrna.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/makesrna.c	2008-11-29 01:33:22 UTC (rev 17607)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/makesrna.c	2008-11-29 02:01:39 UTC (rev 17608)
@@ -870,6 +870,7 @@
 	{"rna_lamp.c", RNA_def_lamp},
 	{"rna_screen.c", RNA_def_screen},
 	{"rna_wm.c", RNA_def_wm},
+	{"rna_sensors.c", RNA_def_sensors}
 	{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-29 01:33:22 UTC (rev 17607)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_ID.c	2008-11-29 02:01:39 UTC (rev 17608)
@@ -66,6 +66,7 @@
 		case ID_SCE: return &RNA_Scene;
 		case ID_SCR: return &RNA_Screen;
 		case ID_WM: return &RNA_WindowManager;
+		case ID_SE: return &RNA_bSensor;
 		default: return &RNA_ID;
 	}
 }

Added: branches/blender2.5/blender/source/blender/makesrna/intern/rna_sensors.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_sensors.c	                        (rev 0)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_sensors.c	2008-11-29 02:01:39 UTC (rev 17608)
@@ -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_sensors_types.h"
+
+#ifdef RNA_RUNTIME
+
+#else
+
+void RNA_def_sensors(BlenderRNA *brna)
+{
+	StructRNA *srna;
+	PropertyRNA *prop;
+	
+	srna= RNA_def_struct(brna, "Sensor", "ID", "Sensor");
+
+}
+
+#endif
+





More information about the Bf-blender-cvs mailing list