removed some unused vars from Curve and matrix
scn.objects.new(None) - adds a new empty - new objects are selected by default now further stripped down the vector struct, the wrapped state was being stored and 2 places.
This commit is contained in:
@@ -41,22 +41,10 @@ extern PyTypeObject vector_Type;
|
||||
|
||||
typedef struct {
|
||||
PyObject_VAR_HEAD
|
||||
struct{
|
||||
float *py_data; //python managed
|
||||
float *blend_data; //blender managed
|
||||
}data;
|
||||
float *vec; //1D array of data (alias)
|
||||
int size;
|
||||
int wrapped; //is wrapped data?
|
||||
float *vec; /*1D array of data (alias), wrapped status depends on wrapped status */
|
||||
short size; /* vec size 2,3 or 4 */
|
||||
short wrapped; /* is wrapped data? */
|
||||
} VectorObject;
|
||||
/*coerced_object is a pointer to the object that it was
|
||||
coerced from when a dummy vector needs to be created from
|
||||
the coerce() function for numeric protocol operations*/
|
||||
|
||||
/*struct data contains a pointer to the actual data that the
|
||||
object uses. It can use either PyMem allocated data (which will
|
||||
be stored in py_data) or be a wrapper for data allocated through
|
||||
blender (stored in blend_data). This is an either/or struct not both*/
|
||||
|
||||
//prototypes
|
||||
PyObject *Vector_Zero( VectorObject * self );
|
||||
|
||||
Reference in New Issue
Block a user