Changeset View
Changeset View
Standalone View
Standalone View
doc/python_api/rst_from_bmesh_opdefines.py
| Show First 20 Lines • Show All 297 Lines • ▼ Show 20 Lines | for comment, b in blocks_py: | ||||
| tp_str = ":class:`bmesh.types.BMesh`" | tp_str = ":class:`bmesh.types.BMesh`" | ||||
| elif tp_sub == BMO_OP_SLOT_SUBTYPE_PTR_SCENE: | elif tp_sub == BMO_OP_SLOT_SUBTYPE_PTR_SCENE: | ||||
| tp_str = ":class:`bpy.types.Scene`" | tp_str = ":class:`bpy.types.Scene`" | ||||
| elif tp_sub == BMO_OP_SLOT_SUBTYPE_PTR_OBJECT: | elif tp_sub == BMO_OP_SLOT_SUBTYPE_PTR_OBJECT: | ||||
| tp_str = ":class:`bpy.types.Object`" | tp_str = ":class:`bpy.types.Object`" | ||||
| elif tp_sub == BMO_OP_SLOT_SUBTYPE_PTR_MESH: | elif tp_sub == BMO_OP_SLOT_SUBTYPE_PTR_MESH: | ||||
| tp_str = ":class:`bpy.types.Mesh`" | tp_str = ":class:`bpy.types.Mesh`" | ||||
| else: | else: | ||||
| print("Cant find", vars_dict_reverse[tp_sub]) | print("Can't find", vars_dict_reverse[tp_sub]) | ||||
| assert(0) | assert(0) | ||||
| elif tp == BMO_OP_SLOT_ELEMENT_BUF: | elif tp == BMO_OP_SLOT_ELEMENT_BUF: | ||||
| assert(tp_sub is not None) | assert(tp_sub is not None) | ||||
| ls = [] | ls = [] | ||||
| if tp_sub & BM_VERT: | if tp_sub & BM_VERT: | ||||
| ls.append(":class:`bmesh.types.BMVert`") | ls.append(":class:`bmesh.types.BMVert`") | ||||
| Show All 20 Lines | for comment, b in blocks_py: | ||||
| tp_str += "int" | tp_str += "int" | ||||
| elif tp_sub == BMO_OP_SLOT_SUBTYPE_MAP_FLT: | elif tp_sub == BMO_OP_SLOT_SUBTYPE_MAP_FLT: | ||||
| tp_str += "float" | tp_str += "float" | ||||
| elif tp_sub == BMO_OP_SLOT_SUBTYPE_MAP_ELEM: | elif tp_sub == BMO_OP_SLOT_SUBTYPE_MAP_ELEM: | ||||
| tp_str += ":class:`bmesh.types.BMVert`/:class:`bmesh.types.BMEdge`/:class:`bmesh.types.BMFace`" | tp_str += ":class:`bmesh.types.BMVert`/:class:`bmesh.types.BMEdge`/:class:`bmesh.types.BMFace`" | ||||
| elif tp_sub == BMO_OP_SLOT_SUBTYPE_MAP_INTERNAL: | elif tp_sub == BMO_OP_SLOT_SUBTYPE_MAP_INTERNAL: | ||||
| tp_str += "unknown internal data, not compatible with python" | tp_str += "unknown internal data, not compatible with python" | ||||
| else: | else: | ||||
| print("Cant find", vars_dict_reverse[tp_sub]) | print("Can't find", vars_dict_reverse[tp_sub]) | ||||
| assert(0) | assert(0) | ||||
| else: | else: | ||||
| print("Cant find", vars_dict_reverse[tp]) | print("Can't find", vars_dict_reverse[tp]) | ||||
| assert(0) | assert(0) | ||||
| args_wash.append((name, tp_str, comment)) | args_wash.append((name, tp_str, comment)) | ||||
| return args_wash | return args_wash | ||||
| # end get_args_wash | # end get_args_wash | ||||
| # all ops get this arg | # all ops get this arg | ||||
| fw(" :arg bm: The bmesh to operate on.\n") | fw(" :arg bm: The bmesh to operate on.\n") | ||||
| Show All 33 Lines | |||||