From b322ce0847e308f15d0a551af0a77ecf3ee06091 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 17 Dec 2018 17:55:18 +1100 Subject: Context: add objects_in_mode(_unique_data) Needed for Python to easily support multi-object edit/pose modes. --- doc/python_api/sphinx_doc_gen.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index ec2ee39a5e1..eda0ab637fa 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -1014,8 +1014,8 @@ context_type_map = { "gpencil_data": ("GreasePencel", False), "gpencil_data_owner": ("ID", False), "image_paint_object": ("Object", False), - "light": ("Light", False), "lattice": ("Lattice", False), + "light": ("Light", False), "lightprobe": ("LightProbe", False), "line_style": ("FreestyleLineStyle", False), "material": ("Material", False), @@ -1023,6 +1023,8 @@ context_type_map = { "mesh": ("Mesh", False), "meta_ball": ("MetaBall", False), "object": ("Object", False), + "objects_in_mode": ("Object", True), + "objects_in_mode_unique_data": ("Object", True), "particle_edit_object": ("Object", False), "particle_settings": ("ParticleSettings", False), "particle_system": ("ParticleSystem", False), @@ -1054,6 +1056,7 @@ context_type_map = { "texture_user_property": ("Property", False), "uv_sculpt_object": ("Object", False), "vertex_paint_object": ("Object", False), + "view_layer": ("ViewLayer", False), "visible_bases": ("ObjectBase", True), "visible_bones": ("EditBone", True), "visible_gpencil_layers": ("GPencilLayer", True), @@ -1061,7 +1064,6 @@ context_type_map = { "visible_pose_bones": ("PoseBone", True), "weight_paint_object": ("Object", False), "world": ("World", False), - "view_layer": ("ViewLayer", False), } -- cgit v1.2.3