Fix py API docgen script for new context members.
authorBastien Montagne <montagne29@wanadoo.fr>
Fri, 19 Oct 2018 18:13:50 +0000 (20:13 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Fri, 19 Oct 2018 18:13:50 +0000 (20:13 +0200)
doc/python_api/sphinx_doc_gen.py

index 278c833216ff0dd8dda088f5fec03ff8120f03f1..5de3eaeb2a3c327e388de39027235d06c70e7c76 100644 (file)
@@ -979,6 +979,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_base": ("ObjectBase", False),
     "active_bone": ("EditBone", False),
     "active_gpencil_brush": ("GPencilSculptBrush", False),
@@ -1040,6 +1041,7 @@ context_type_map = {
     "selected_nodes": ("Node", True),
     "selected_objects": ("Object", True),
     "selected_pose_bones": ("PoseBone", True),
+    "selected_pose_bones_from_active_object": ("PoseBone", True),
     "selected_sequences": ("Sequence", True),
     "sequences": ("Sequence", True),
     "smoke": ("SmokeModifier", False),
@@ -1049,6 +1051,7 @@ context_type_map = {
     "texture_slot": ("MaterialTextureSlot", False),
     "texture_user": ("ID", False),
     "texture_user_property": ("Property", False),
+    "uv_sculpt_object": ("Object", False),
     "vertex_paint_object": ("Object", False),
     "visible_bases": ("ObjectBase", True),
     "visible_bones": ("EditBone", True),