diff options
author | Michel Selten <michel@mselten.demon.nl> | 2003-04-08 23:54:14 +0400 |
---|---|---|
committer | Michel Selten <michel@mselten.demon.nl> | 2003-04-08 23:54:14 +0400 |
commit | ec669df6eec3188938d9d84dd4666eac8b5aa1d1 (patch) | |
tree | 39985e13620956eb4e9d708b2d880ed8b03d0bd6 /source/blender/python/api2_2x/modules.h | |
parent | 0850182872fef788d8cf128f3a5901dca142fa8f (diff) |
The following updates have been contributed by Willian P. Germano:
* Implemented BPY_end_python function.
* Implemented error handling. This results in rerunning a script after an
error has occurred. No need to restart blender anymore.
* Camera module supports dir()
* variable assignment now calls the Python equivalent function - this has
type checking and should be safer now.
* Implemented the Lamp module. Used the Camera module as a template.
* Implemented the Image module.
* Added EXPP_ClampFloat and EXPP_intError functions to gen_utils.[ch]
* Implemented 'constant' object.
Diffstat (limited to 'source/blender/python/api2_2x/modules.h')
-rw-r--r-- | source/blender/python/api2_2x/modules.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/modules.h b/source/blender/python/api2_2x/modules.h index ce6c4be6bf3..6d1fa51c993 100644 --- a/source/blender/python/api2_2x/modules.h +++ b/source/blender/python/api2_2x/modules.h @@ -31,6 +31,9 @@ #include <Python.h> #include <DNA_object_types.h> +#include <DNA_camera_types.h> +#include <DNA_lamp_types.h> +#include <DNA_image_types.h> /*****************************************************************************/ /* Global variables */ @@ -40,5 +43,9 @@ PyObject *g_blenderdict; void initBlender (void); PyObject* initObject (void); PyObject* ObjectCreatePyObject (struct Object *obj); -PyObject* initCamera (void); +PyObject* M_Camera_Init (void); PyObject* CameraCreatePyObject (struct Camera *cam); +PyObject* M_Lamp_Init (void); +PyObject* LampCreatePyObject (struct Lamp *lamp); +PyObject* M_Image_Init (void); +PyObject* ImageCreatePyObject (struct Image *img); |