Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-07-20 08:01:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-07-20 08:01:03 +0300
commitfe2f43a15c648e13fbc5fa4ba24cea41b3671427 (patch)
treeb5f6ec72ba191e8b9b9ec802426e73bd247b3705 /source/blender/python
parent59eb71afa1d11ab0a1d5f741debc6989ec511ff9 (diff)
Cleanup: use '#if 0' for disabling multiple lines
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/intern/bpy_rna.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index e6f3e509469..5b1a8f06c60 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -7424,10 +7424,13 @@ static PyObject *pyrna_srna_Subtype(StructRNA *srna)
PyObject *metaclass;
const char *idname = RNA_struct_identifier(srna);
- /* Remove __doc__ for now. */
- // const char *descr = RNA_struct_ui_description(srna);
- // if (!descr) descr = "(no docs)";
- // "__doc__", descr
+ /* Remove `__doc__` for now because we don't need it to generate docs. */
+#if 0
+ const char *descr = RNA_struct_ui_description(srna);
+ if (!descr) {
+ descr = "(no docs)";
+ }
+#endif
if (RNA_struct_idprops_check(srna) &&
!PyObject_IsSubclass(py_base, (PyObject *)&pyrna_struct_meta_idprop_Type)) {