diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-07-01 09:19:14 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-07-01 09:19:14 +0400 |
commit | fad2aeb3fb674ed9fe9d5e87622cc1f6b7d4ecb1 (patch) | |
tree | 56567faf377aea8043fd2abe78cfc7a29d44acd4 /source/blender/python/api2_2x/modules.h | |
parent | 14b4ed4e8dd15ebbc05fa3947e983d5e6bbc7fc8 (diff) |
- small fix in Sys.c to compile on Windows:
Thanks Florian Eggenberger for telling us about it. And Greg McBride for
pointing a possible fix.
- Draw.Text and Draw.GetStringWidth updated:
Now they accept an optional second parameter to set font size and Draw.Text
returns the drawn string width.
- Partially fixed the update() and PutRaw() bugs in NMesh:
A total fix will require bigger changes, but what was done (unless buggy)
takes care of the common cases.
Diffstat (limited to 'source/blender/python/api2_2x/modules.h')
-rw-r--r-- | source/blender/python/api2_2x/modules.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/modules.h b/source/blender/python/api2_2x/modules.h index 8dc829f2d21..2704189b954 100644 --- a/source/blender/python/api2_2x/modules.h +++ b/source/blender/python/api2_2x/modules.h @@ -36,6 +36,7 @@ #include <DNA_scene_types.h> #include <DNA_object_types.h> +#include <DNA_mesh_types.h> #include <DNA_camera_types.h> #include <DNA_lamp_types.h> #include <DNA_curve_types.h> @@ -78,8 +79,8 @@ PyObject * Types_Init (void); /* NMesh Data */ PyObject * NMesh_Init (void); -PyObject * NMesh_CreatePyObject (struct Camera *cam); -Camera * NMesh_FromPyObject (PyObject *pyobj); +PyObject * NMesh_CreatePyObject (Mesh *me); +Mesh * NMesh_FromPyObject (PyObject *pyobj); int NMesh_CheckPyObject (PyObject *pyobj); /* Material */ @@ -90,6 +91,7 @@ Material **EXPP_newMaterialList_fromPyList (PyObject *list); Material **EXPP_newMaterialList(int len); int EXPP_releaseMaterialList (Material **matlist, int len); int EXPP_synchronizeMaterialLists (Object *object, void *data); +void EXPP_incr_mats_us (Material **matlist, int len); PyObject * EXPP_PyList_fromMaterialList(Material **matlist, int len); /* Camera Data */ |