* Added submodule Blender.Material

* Added submodule Blender.Types:
    Blender Type definitions can't be static anymore.
* Some cleanup of now unused defines in Camera.h and Lamp.h
This commit is contained in:
2003-05-28 04:36:18 +00:00
parent a0e54446f3
commit b7bf9bf1b7
20 changed files with 1792 additions and 264 deletions

View File

@@ -35,7 +35,7 @@
/*****************************/
/* Vector Python Object */
/*****************************/
#define VectorObject_Check(v) ((v)->ob_type == &Vector_Type)
#define VectorObject_Check(v) ((v)->ob_type == &vector_Type)
static void Vector_dealloc(VectorObject *self)
{
@@ -191,7 +191,7 @@ static PySequenceMethods Vector_SeqMethods =
(intintobjargproc) Vector_ass_slice, /* sq_ass_slice */
};
PyTypeObject Vector_Type =
PyTypeObject vector_Type =
{
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
@@ -213,7 +213,7 @@ PyObject *newVectorObject(float *vec, int size)
{
VectorObject *self;
self= PyObject_NEW(VectorObject, &Vector_Type);
self= PyObject_NEW(VectorObject, &vector_Type);
self->vec= vec;
self->size= size;