From 0cf0f5a62225f9f9cc2ed9715274e94dc09ad8b0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 3 Sep 2010 14:53:54 +0000 Subject: rna api - move: material.add_texture(tex, coords, mapto) --> material.texture_slots.add() - added material.texture_slots.create(index), material.texture_slots.clear(index) - texture slot functions also work for lamp and world now. Other minor changes - allow rna functions to set FUNC_NO_SELF and FUNC_USE_SELF_ID at once. - [#23317] Changed some operators' RNA to accept lengths, a modification I made to this patch made it not work as intended, removed this edit so unit buttons appier in the UI for certain operators. - Sphinx doc gen, 2 columns rather then 3, didnt quite fit in some cases. --- source/blender/python/doc/sphinx_doc_gen.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/python/doc/sphinx_doc_gen.py') diff --git a/source/blender/python/doc/sphinx_doc_gen.py b/source/blender/python/doc/sphinx_doc_gen.py index 5d70e62dde8..789a39e2328 100644 --- a/source/blender/python/doc/sphinx_doc_gen.py +++ b/source/blender/python/doc/sphinx_doc_gen.py @@ -443,7 +443,7 @@ def rna2sphinx(BASEPATH): fw("\n") fw(" Access to blenders internal data\n") fw("\n") - fw(" :type: :class:`bpy.types.Main`\n") + fw(" :type: :class:`bpy.types.BlendData`\n") file.close() EXAMPLE_SET_USED.add("bpy.data") @@ -655,7 +655,7 @@ def rna2sphinx(BASEPATH): fw(".. rubric:: Inherited Properties\n\n") fw(".. hlist::\n") - fw(" :columns: 3\n\n") + fw(" :columns: 2\n\n") for line in lines: fw(line) @@ -680,7 +680,7 @@ def rna2sphinx(BASEPATH): fw(".. rubric:: Inherited Functions\n\n") fw(".. hlist::\n") - fw(" :columns: 3\n\n") + fw(" :columns: 2\n\n") for line in lines: fw(line) @@ -694,7 +694,7 @@ def rna2sphinx(BASEPATH): fw(".. rubric:: References\n\n") fw(".. hlist::\n") - fw(" :columns: 3\n\n") + fw(" :columns: 2\n\n") for ref in struct.references: ref_split = ref.split(".") -- cgit v1.2.3