From dfa3f51e5245a466eb2d5b568f606fc45d533602 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 13 Jan 2020 15:57:15 +0100 Subject: 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. --- doc/python_api/sphinx_doc_gen.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') 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), -- cgit v1.2.3