fix from stable - was missing a NULL check
This commit is contained in:
@@ -221,18 +221,20 @@ static PyObject *Action_getFrameNumbers(BPy_Action *self)
|
|||||||
|
|
||||||
py_list = PyList_New(0);
|
py_list = PyList_New(0);
|
||||||
for(achan = self->action->chanbase.first; achan; achan = achan->next){
|
for(achan = self->action->chanbase.first; achan; achan = achan->next){
|
||||||
for (icu = achan->ipo->curve.first; icu; icu = icu->next){
|
if (achan->ipo) {
|
||||||
bezt= icu->bezt;
|
for (icu = achan->ipo->curve.first; icu; icu = icu->next){
|
||||||
if(bezt) {
|
bezt= icu->bezt;
|
||||||
verts = icu->totvert;
|
if(bezt) {
|
||||||
while(verts--) {
|
verts = icu->totvert;
|
||||||
PyObject *value;
|
while(verts--) {
|
||||||
value = PyInt_FromLong((int)bezt->vec[1][0]);
|
PyObject *value;
|
||||||
if ( PySequence_Contains(py_list, value) == 0){
|
value = PyInt_FromLong((int)bezt->vec[1][0]);
|
||||||
PyList_Append(py_list, value);
|
if ( PySequence_Contains(py_list, value) == 0){
|
||||||
|
PyList_Append(py_list, value);
|
||||||
|
}
|
||||||
|
Py_DECREF(value);
|
||||||
|
bezt++;
|
||||||
}
|
}
|
||||||
Py_DECREF(value);
|
|
||||||
bezt++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user