diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-05-20 13:17:21 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-05-20 13:17:21 +0400 |
commit | d80911b8675582dca46ce78c17d5434b66a27f18 (patch) | |
tree | dcb1c32f10273f99fa2e3872f654387fabd27c7d /source/blender/python | |
parent | a1cc5ef8eb5ff4c2991199d286e572f1b6eaf4c6 (diff) |
RNA: ID properties were not being shown as RNA properties anymore, fixed.
Python: fix two warnings (initialize to NULL).
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_operator_wrap.c | 2 | ||||
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_operator_wrap.c b/source/blender/python/intern/bpy_operator_wrap.c index 4fa72fe18bc..43d62b3005f 100644 --- a/source/blender/python/intern/bpy_operator_wrap.c +++ b/source/blender/python/intern/bpy_operator_wrap.c @@ -187,7 +187,7 @@ static int PYTHON_OT_generic(int mode, bContext *C, wmOperator *op, wmEvent *eve { PyObject *py_class = op->type->pyop_data; PyObject *args; - PyObject *ret= NULL, *py_class_instance, *item; + PyObject *ret= NULL, *py_class_instance, *item= NULL; int ret_flag= (mode==PYOP_POLL ? 0:OPERATOR_CANCELLED); PyGILState_STATE gilstate = PyGILState_Ensure(); diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index 3274a2ba284..f1aa5e8fdfe 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -1092,6 +1092,7 @@ PyObject *pyrna_param_to_py(PointerRNA *ptr, PropertyRNA *prop, void *data) case PROP_COLLECTION: /* XXX not supported yet * ret = pyrna_prop_CreatePyObject(ptr, prop); */ + ret = NULL; break; default: PyErr_Format(PyExc_AttributeError, "RNA Error: unknown type \"%d\" (pyrna_param_to_py)", type); |