Fix doc builder using C version of bmesh_opdefines

The file bmesh_opdefines.c was recently converted to bmesh_opdefines.cc,
but the manual builder was not updated accordingly.

Also, update some comments in the code which were still mentioning the C
version of this file.

Pull Request: https://projects.blender.org/blender/blender/pulls/110532
This commit is contained in:
Sergey Sharybin
2023-07-27 14:49:00 +02:00
committed by Sergey Sharybin
parent 1327befc94
commit 6b9da41221
3 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# This is a quite stupid script which extracts bmesh api docs from
# 'bmesh_opdefines.c' in order to avoid having to add a lot of introspection
# 'bmesh_opdefines.cc' in order to avoid having to add a lot of introspection
# data access into the api.
#
# The script is stupid because it makes assumptions about formatting...
@@ -19,7 +19,7 @@ import re
CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
SOURCE_DIR = os.path.normpath(os.path.abspath(os.path.normpath(os.path.join(CURRENT_DIR, "..", ".."))))
FILE_OP_DEFINES_C = os.path.join(SOURCE_DIR, "source", "blender", "bmesh", "intern", "bmesh_opdefines.c")
FILE_OP_DEFINES_CC = os.path.join(SOURCE_DIR, "source", "blender", "bmesh", "intern", "bmesh_opdefines.cc")
OUT_RST = os.path.join(CURRENT_DIR, "rst", "bmesh.ops.rst")
HEADER = r"""
@@ -43,7 +43,7 @@ This script shows how operators can be used to model a link of a chain.
def main():
fsrc = open(FILE_OP_DEFINES_C, 'r', encoding="utf-8")
fsrc = open(FILE_OP_DEFINES_CC, 'r', encoding="utf-8")
blocks = []