[Bf-blender-cvs] [dc9b05df228] master: Fix API docs build after recent changes in BMesh operators.

Bastien Montagne noreply at git.blender.org
Mon Nov 25 12:33:57 CET 2019


Commit: dc9b05df228e08e68e5b8b2c424a8b06eb8860bb
Author: Bastien Montagne
Date:   Mon Nov 25 12:32:37 2019 +0100
Branches: master
https://developer.blender.org/rBdc9b05df228e08e68e5b8b2c424a8b06eb8860bb

Fix API docs build after recent changes in BMesh operators.

Note: not sure what 'type' to give for that new
`BMO_OP_SLOT_SUBTYPE_PTR_STRUCT`, name sounds generic so used
`bpy_struct` for now... :/

===================================================================

M	doc/python_api/rst_from_bmesh_opdefines.py

===================================================================

diff --git a/doc/python_api/rst_from_bmesh_opdefines.py b/doc/python_api/rst_from_bmesh_opdefines.py
index c4e97d1f38b..8e40a1a7a39 100644
--- a/doc/python_api/rst_from_bmesh_opdefines.py
+++ b/doc/python_api/rst_from_bmesh_opdefines.py
@@ -138,10 +138,11 @@ def main():
         "BMO_OP_SLOT_SUBTYPE_MAP_EMPTY",
         "BMO_OP_SLOT_SUBTYPE_MAP_INTERNAL",
 
+        "BMO_OP_SLOT_SUBTYPE_PTR_BMESH",
         "BMO_OP_SLOT_SUBTYPE_PTR_SCENE",
         "BMO_OP_SLOT_SUBTYPE_PTR_OBJECT",
         "BMO_OP_SLOT_SUBTYPE_PTR_MESH",
-        "BMO_OP_SLOT_SUBTYPE_PTR_BMESH",
+        "BMO_OP_SLOT_SUBTYPE_PTR_STRUCT",
 
         "BMO_OP_SLOT_SUBTYPE_INT_ENUM",
         "BMO_OP_SLOT_SUBTYPE_INT_FLAG",
@@ -345,6 +346,10 @@ def main():
                         tp_str = ":class:`bpy.types.Object`"
                     elif tp_sub == BMO_OP_SLOT_SUBTYPE_PTR_MESH:
                         tp_str = ":class:`bpy.types.Mesh`"
+                    elif tp_sub == BMO_OP_SLOT_SUBTYPE_PTR_STRUCT:
+                        # XXX Used for CurveProfile only currently I think (bevel code),
+                        #     but think the idea is that that pointer is for any type?
+                        tp_str = ":class:`bpy.types.bpy_struct`"
                     else:
                         print("Can't find", vars_dict_reverse[tp_sub])
                         assert(0)



More information about the Bf-blender-cvs mailing list