[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17609] branches/blender2.5/blender/source /blender/makesrna: fix a lot of mistakes in prev commit

Hamed Zaghaghi hamed.zaghaghi at gmail.com
Sat Nov 29 03:31:08 CET 2008


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

Log Message:
-----------
fix a lot of mistakes in prev commit

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
    branches/blender2.5/blender/source/blender/makesrna/intern/rna_internal.h

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

Removed 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 02:01:39 UTC (rev 17608)
+++ branches/blender2.5/blender/source/blender/makesrna/RNA_access.h	2008-11-29 02:30:55 UTC (rev 17609)
@@ -75,7 +75,7 @@
 extern StructRNA RNA_Screen;
 extern StructRNA RNA_Operator;
 extern StructRNA RNA_WindowManager;
-extern StructRNA RNA_bSensor;
+extern StructRNA RNA_Sensor;
 
 /* 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 02:01:39 UTC (rev 17608)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/makesrna.c	2008-11-29 02:30:55 UTC (rev 17609)
@@ -870,7 +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}
+	{"rna_sensor.c", RNA_def_sensor},
 	{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 02:01:39 UTC (rev 17608)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_ID.c	2008-11-29 02:30:55 UTC (rev 17609)
@@ -66,7 +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;
+		case ID_SE: return &RNA_Sensor;
 		default: return &RNA_ID;
 	}
 }

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-29 02:01:39 UTC (rev 17608)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_internal.h	2008-11-29 02:30:55 UTC (rev 17609)
@@ -91,6 +91,7 @@
 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 */
 

Added: branches/blender2.5/blender/source/blender/makesrna/intern/rna_sensor.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_sensor.c	                        (rev 0)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_sensor.c	2008-11-29 02:30:55 UTC (rev 17609)
@@ -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
+

Deleted: branches/blender2.5/blender/source/blender/makesrna/intern/rna_sensors.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_sensors.c	2008-11-29 02:01:39 UTC (rev 17608)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_sensors.c	2008-11-29 02:30:55 UTC (rev 17609)
@@ -1,49 +0,0 @@
-/**
- * $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