diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index d285e5f207a..acf37cf8b8c 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -1866,14 +1866,14 @@ def pyrna2sphinx(basepath): ) if _BPY_PROP_COLLECTION_FAKE: - class_value = bpy.data.objects.__class__ + class_value = bpy.types.bpy_prop_collection fake_bpy_type( "bpy.types", class_value, _BPY_PROP_COLLECTION_FAKE, "built-in class used for all collections.", use_subclasses=False, ) if _BPY_PROP_COLLECTION_IDPROP_FAKE: - class_value = bpy.data.objects.__class__ + class_value = bpy.types.bpy_prop_collection_idprop fake_bpy_type( "bpy.types", class_value, _BPY_PROP_COLLECTION_IDPROP_FAKE, "built-in class used for user defined collections.", use_subclasses=False,