Merged changes in the trunk up to revision 42425.
Conflicts resolved: doc/python_api/sphinx_doc_gen.py source/blender/blenkernel/intern/DerivedMesh.c source/blender/blenloader/intern/readfile.c source/blender/editors/mesh/editmesh.c source/blender/editors/space_view3d/drawobject.c
This commit is contained in:
@@ -39,7 +39,7 @@ As well as pep8 we have other conventions used for blender python scripts.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
bpy.context.scene.render.file_format = 'PNG'
|
||||
bpy.context.scene.render.image_settings.file_format = 'PNG'
|
||||
bpy.context.scene.render.filepath = "//render_out"
|
||||
|
||||
* pep8 also defines that lines should not exceed 79 characters, we felt this is too restrictive so this is optional per script.
|
||||
@@ -181,7 +181,7 @@ When removing many items in a large list this can provide a good speedup.
|
||||
Avoid Copying Lists
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
When passing a list/dictionary to a function, it is faster to have the function modify the list rather then returning a new list so python dosn't have tp duplicate the list in memory.
|
||||
When passing a list/dictionary to a function, it is faster to have the function modify the list rather then returning a new list so python doesn't have to duplicate the list in memory.
|
||||
|
||||
Functions that modify a list in-place are more efficient then functions that create new lists.
|
||||
|
||||
|
||||
@@ -87,6 +87,7 @@ else:
|
||||
"gpu",
|
||||
"mathutils",
|
||||
"mathutils.geometry",
|
||||
"mathutils.noise",
|
||||
"Freestyle",
|
||||
)
|
||||
|
||||
@@ -1198,6 +1199,8 @@ def rna2sphinx(BASEPATH):
|
||||
fw(" mathutils.rst\n\n")
|
||||
if "mathutils.geometry" not in EXCLUDE_MODULES:
|
||||
fw(" mathutils.geometry.rst\n\n")
|
||||
if "mathutils.noise" not in EXCLUDE_MODULES:
|
||||
fw(" mathutils.noise.rst\n\n")
|
||||
if "Freestyle" not in EXCLUDE_MODULES:
|
||||
fw(" Freestyle.rst\n\n")
|
||||
if "bgl" not in EXCLUDE_MODULES:
|
||||
@@ -1339,6 +1342,10 @@ def rna2sphinx(BASEPATH):
|
||||
import mathutils.geometry as module
|
||||
pymodule2sphinx(BASEPATH, "mathutils.geometry", module, "Geometry Utilities")
|
||||
|
||||
if "mathutils.noise" not in EXCLUDE_MODULES:
|
||||
import mathutils.noise as module
|
||||
pymodule2sphinx(BASEPATH, "mathutils.noise", module, "Noise Utilities")
|
||||
|
||||
if "Freestyle" not in EXCLUDE_MODULES:
|
||||
import Freestyle as module
|
||||
pymodule2sphinx(BASEPATH, "Freestyle", module, "Freestyle Data Types & Operators")
|
||||
|
||||
Reference in New Issue
Block a user