PyDoc: add bpy_prop_collection_idprop class document

Ref: !132587
This commit is contained in:
nutti
2025-01-03 17:53:10 +09:00
committed by Campbell Barton
parent aa81aed109
commit 10e3e3b4a0
2 changed files with 59 additions and 4 deletions

View File

@@ -598,6 +598,7 @@ from types import (
_BPY_STRUCT_FAKE = "bpy_struct"
_BPY_PROP_COLLECTION_FAKE = "bpy_prop_collection"
_BPY_PROP_COLLECTION_IDPROP_FAKE = "bpy_prop_collection_idprop"
if _BPY_PROP_COLLECTION_FAKE:
_BPY_PROP_COLLECTION_ID = ":class:`{:s}`".format(_BPY_PROP_COLLECTION_FAKE)
@@ -1871,6 +1872,13 @@ def pyrna2sphinx(basepath):
"built-in class used for all collections.", use_subclasses=False,
)
if _BPY_PROP_COLLECTION_IDPROP_FAKE:
class_value = bpy.data.objects.__class__
fake_bpy_type(
"bpy.types", class_value, _BPY_PROP_COLLECTION_IDPROP_FAKE,
"built-in class used for user defined collections.", use_subclasses=False,
)
# Operators.
def write_ops():
API_BASEURL = "https://projects.blender.org/blender/blender/src/branch/main/scripts"