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 = []

View File

@ -30,10 +30,10 @@ extern "C" {
* - hash mappings.
*
* each slot is identified by a slot code, as are each operator.
* operators, and their slots, are defined in bmesh_opdefines.c (with their
* operators, and their slots, are defined in bmesh_opdefines.cc (with their
* execution functions prototyped in bmesh_operators_private.h), with all their
* operator code and slot codes defined in bmesh_operators.h. see
* bmesh_opdefines.c and the BMOpDefine struct for how to define new operators.
* bmesh_opdefines.cc and the BMOpDefine struct for how to define new operators.
*
* in general, operators are fed arrays of elements, created using either
* #BMO_slot_buffer_from_hflag or #BMO_slot_buffer_from_flag

View File

@ -8,7 +8,7 @@
* \ingroup bmesh
*/
/* See comments in `intern/bmesh_opdefines.c` for documentation of specific operators. */
/* See comments in `intern/bmesh_opdefines.cc` for documentation of specific operators. */
#ifdef __cplusplus
extern "C" {