diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-11-20 10:10:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-11-20 10:12:50 +0300 |
commit | 2defd81b5e2ceca47d7b62ef5062c05ea9206e59 (patch) | |
tree | 0044115420f349c180edca16cebdb5e12ea83220 /source/blender/python/intern/bpy_rna.c | |
parent | 43eb34ec81fdf0479703a1c817b64a70dc93bbea (diff) |
Cleanup: comments
Diffstat (limited to 'source/blender/python/intern/bpy_rna.c')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index 6bc7676973c..4c14f8ca8d3 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -8684,7 +8684,8 @@ static PyObject *pyrna_register_class(PyObject *UNUSED(self), PyObject *py_class return NULL; } - /* Call classed register method. */ + /* Call classed register method. + * Note that zero falls through, no attribute, no error. */ switch (_PyObject_LookupAttr(py_class, bpy_intern_str_register, &py_cls_meth)) { case 1: { PyObject *ret = PyObject_CallObject(py_cls_meth, NULL); @@ -8791,7 +8792,8 @@ static PyObject *pyrna_unregister_class(PyObject *UNUSED(self), PyObject *py_cla return NULL; } - /* Call classed unregister method. */ + /* Call classed unregister method. + * Note that zero falls through, no attribute, no error. */ switch (_PyObject_LookupAttr(py_class, bpy_intern_str_unregister, &py_cls_meth)) { case 1: { PyObject *ret = PyObject_CallObject(py_cls_meth, NULL); |