Pydoc: Fix sphinx compile warnings about freestyle
Sphinx expects functions and methods with the same name and different parameters to be written using one directive. See: https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#basic-markup Unfortunately this makes giving different descriptions for each harder. This was already a request for better support for this in sphinx, see: https://github.com/sphinx-doc/sphinx/issues/7787 Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D9170
This commit is contained in:
@@ -55,21 +55,14 @@ PyDoc_STRVAR(
|
||||
"Class defining a material.\n"
|
||||
"\n"
|
||||
".. method:: __init__()\n"
|
||||
" __init__(brother)\n"
|
||||
" __init__(line, diffuse, ambient, specular, emission, shininess, priority)\n"
|
||||
"\n"
|
||||
" Default constructor.\n"
|
||||
" Creates a :class:`FrsMaterial` using either default constructor,\n"
|
||||
" copy constructor, or an overloaded constructor\n"
|
||||
"\n"
|
||||
".. method:: __init__(brother)\n"
|
||||
"\n"
|
||||
" Copy constructor.\n"
|
||||
"\n"
|
||||
" :arg brother: A Material object.\n"
|
||||
" :arg brother: A Material object to be used as a copy constructor.\n"
|
||||
" :type brother: :class:`Material`\n"
|
||||
"\n"
|
||||
".. method:: __init__(line, diffuse, ambient, specular, emission, shininess, priority)\n"
|
||||
"\n"
|
||||
" Builds a Material from its line, diffuse, ambient, specular, emissive\n"
|
||||
" colors, a shininess coefficient and line color priority.\n"
|
||||
"\n"
|
||||
" :arg line: The line color.\n"
|
||||
" :type line: :class:`mathutils.Vector`, list or tuple of 4 float values\n"
|
||||
" :arg diffuse: The diffuse color.\n"
|
||||
|
||||
Reference in New Issue
Block a user