[#21039] OBJ import Clamp Scale limited to .01 as lowest Value. Used to be Zero

[#21053] 2.5alpha0 export obj problem
+ some minor changes.
This commit is contained in:
2010-02-09 19:22:57 +00:00
parent f577c4bb7f
commit 52b1c37645
4 changed files with 15 additions and 7 deletions

View File

@@ -2599,7 +2599,7 @@ PyObject *pyrna_prop_iter(BPy_PropertyRNA *self)
{
/* Try get values from a collection */
PyObject *ret;
PyObject *iter;
PyObject *iter= NULL;
if(RNA_property_array_check(&self->ptr, self->prop)) {
int len= pyrna_prop_array_length(self);
@@ -2614,9 +2614,13 @@ PyObject *pyrna_prop_iter(BPy_PropertyRNA *self)
}
/* we know this is a list so no need to PyIter_Check */
iter = PyObject_GetIter(ret);
Py_DECREF(ret);
/* we know this is a list so no need to PyIter_Check
* otherwise it could be NULL (unlikely) if conversion failed */
if(ret) {
iter = PyObject_GetIter(ret);
Py_DECREF(ret);
}
return iter;
}