[Bf-blender-cvs] [dfa3f51e524] blender-v2.82-release: Fix (unreported) broken PY API doc gen after recent GP changes.
Bastien Montagne
noreply at git.blender.org
Mon Jan 13 15:58:18 CET 2020
Commit: dfa3f51e5245a466eb2d5b568f606fc45d533602
Author: Bastien Montagne
Date: Mon Jan 13 15:57:15 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rBdfa3f51e5245a466eb2d5b568f606fc45d533602
Fix (unreported) broken PY API doc gen after recent GP changes.
As usual... Adding/removing members from context requires updates of the
API building script.
===================================================================
M doc/python_api/sphinx_doc_gen.py
===================================================================
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py
index 278a2700f27..b74ad3c7dc2 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -989,6 +989,7 @@ def pymodule2sphinx(basepath, module_name, module, title):
# Changes in Blender will force errors here
context_type_map = {
# context_member: (RNA type, is_collection)
+ "active_annotation_layer": ("GPencilLayer", False),
"active_base": ("ObjectBase", False),
"active_bone": ("EditBone", False),
"active_gpencil_frame": ("GreasePencilLayer", True),
@@ -998,6 +999,8 @@ context_type_map = {
"active_operator": ("Operator", False),
"active_pose_bone": ("PoseBone", False),
"active_editable_fcurve": ("FCurve", False),
+ "annotation_data": ("GreasePencil", False),
+ "annotation_data_owner": ("ID", False),
"armature": ("Armature", False),
"bone": ("Bone", False),
"brush": ("Brush", False),
More information about the Bf-blender-cvs
mailing list