add initial codes for rna_sensors

This commit is contained in:
Hamed Zaghaghi 2008-11-29 02:01:39 +00:00
parent 228ce647e0
commit 344d9f1e6a
5 changed files with 53 additions and 0 deletions

@ -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
*

@ -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)

@ -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;
}
}

@ -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 */

@ -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