diff options
author | Hamed Zaghaghi <hamed.zaghaghi@gmail.com> | 2008-11-29 05:01:39 +0300 |
---|---|---|
committer | Hamed Zaghaghi <hamed.zaghaghi@gmail.com> | 2008-11-29 05:01:39 +0300 |
commit | 344d9f1e6a1ee15e2cbbafafad704c7efd0e8ce6 (patch) | |
tree | c15cf3b349d9d285940df8b491934911292639ea /source/blender/makesrna | |
parent | 228ce647e036c7531d978e38202958b7854c707a (diff) |
add initial codes for rna_sensors
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/RNA_access.h | 1 | ||||
-rw-r--r-- | source/blender/makesrna/intern/makesrna.c | 1 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_ID.c | 1 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_internal.h | 1 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_sensor.c | 49 |
5 files changed, 53 insertions, 0 deletions
diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h index 703b0c70ffd..76a3e58d453 100644 --- a/source/blender/makesrna/RNA_access.h +++ b/source/blender/makesrna/RNA_access.h @@ -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 * diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c index bd426b20214..79da5af53ee 100644 --- a/source/blender/makesrna/intern/makesrna.c +++ b/source/blender/makesrna/intern/makesrna.c @@ -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) diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c index b5a5a41069f..04dbb26e5a3 100644 --- a/source/blender/makesrna/intern/rna_ID.c +++ b/source/blender/makesrna/intern/rna_ID.c @@ -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; } } diff --git a/source/blender/makesrna/intern/rna_internal.h b/source/blender/makesrna/intern/rna_internal.h index aedd80e0d02..9fecd149b13 100644 --- a/source/blender/makesrna/intern/rna_internal.h +++ b/source/blender/makesrna/intern/rna_internal.h @@ -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 index 00000000000..3457899d86f --- /dev/null +++ b/source/blender/makesrna/intern/rna_sensor.c @@ -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 + |