type initialization updates, and refcount fix for lamp, reverted some changes to NMesh
This commit is contained in:
@@ -833,7 +833,8 @@ PyObject *Lamp_CreatePyObject( Lamp * lamp )
|
||||
rgb[2] = &lamp->b;
|
||||
|
||||
pylamp->color = ( BPy_rgbTuple * ) rgbTuple_New( rgb );
|
||||
|
||||
Py_INCREF(pylamp->color);
|
||||
|
||||
return ( PyObject * ) pylamp;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user