* 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

@@ -64,7 +64,7 @@ static Buffer *make_buffer(int type, int ndimensions, int *dimensions)
buf= MEM_mallocN(length*size, "Buffer buffer");
buffer= (Buffer *) PyObject_NEW(Buffer, &Buffer_Type);
buffer= (Buffer *) PyObject_NEW(Buffer, &buffer_Type);
buffer->parent= NULL;
buffer->ndimensions= ndimensions;
buffer->dimensions= dimensions;
@@ -170,7 +170,7 @@ static PyObject *Buffer_item(PyObject *self, int i)
}
size= type_size(buf->type);
newbuf= (Buffer *) PyObject_NEW(Buffer, &Buffer_Type);
newbuf= (Buffer *) PyObject_NEW(Buffer, &buffer_Type);
Py_INCREF(self);
newbuf->parent= self;