fix from stable - was missing a NULL check
This commit is contained in:
@@ -221,6 +221,7 @@ 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){
|
||||||
|
if (achan->ipo) {
|
||||||
for (icu = achan->ipo->curve.first; icu; icu = icu->next){
|
for (icu = achan->ipo->curve.first; icu; icu = icu->next){
|
||||||
bezt= icu->bezt;
|
bezt= icu->bezt;
|
||||||
if(bezt) {
|
if(bezt) {
|
||||||
@@ -237,6 +238,7 @@ static PyObject *Action_getFrameNumbers(BPy_Action *self)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
PyList_Sort(py_list);
|
PyList_Sort(py_list);
|
||||||
return EXPP_incr_ret(py_list);
|
return EXPP_incr_ret(py_list);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user