Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-04-23 03:51:50 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-23 03:51:50 +0400
commit1642e2888c296d71b2facd1a607f24a5992bb164 (patch)
tree79af894b21bfc5884295782612852b5d874e459d /doc
parenta164aa1ab6c23e068bb4c136609fc09a1347f990 (diff)
rename Mesh.uv_loop_layers --> uv_layers
add filtering for document generator to support --partial bpy.types.SomeType
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/rst/include__bmesh.rst13
-rw-r--r--doc/python_api/rst/info_gotcha.rst2
-rw-r--r--doc/python_api/sphinx_doc_gen.py21
3 files changed, 24 insertions, 12 deletions
diff --git a/doc/python_api/rst/include__bmesh.rst b/doc/python_api/rst/include__bmesh.rst
index 24f113e7b50..212ab4e4708 100644
--- a/doc/python_api/rst/include__bmesh.rst
+++ b/doc/python_api/rst/include__bmesh.rst
@@ -32,12 +32,11 @@ For an overview of BMesh data types and how they reference each other see:
.. warning::
- TODO Items Are
+ TODO items are...
* add access to BMesh **walkers**
- * add a way to re-tessellate an editmode bmesh.
- * add deform vert custom-data access.
-
+ * add api for calling BMesh operators (unrelated to bpy.ops)
+ * add custom-data manipulation functions add/remove/rename.
Example Script
--------------
@@ -110,8 +109,8 @@ Here are some examples ...
shape_lay = bm.verts.layers.shape["Key.001"]
for vert in bm.verts:
- shape = vert[shape_lay]
- print("Vert Shape: %f, %f, %f" % (shape.x, shape.y, shape.z))
+ shape = vert[shape_lay]
+ print("Vert Shape: %f, %f, %f" % (shape.x, shape.y, shape.z))
.. code-block:: python
@@ -125,7 +124,7 @@ Here are some examples ...
for vert in bm.verts:
dvert = vert[dvert_lay]
-
+
if group_index in dvert:
print("Weight %f" % dvert[group_index])
else:
diff --git a/doc/python_api/rst/info_gotcha.rst b/doc/python_api/rst/info_gotcha.rst
index 25ef5175976..eb312799b41 100644
--- a/doc/python_api/rst/info_gotcha.rst
+++ b/doc/python_api/rst/info_gotcha.rst
@@ -132,6 +132,8 @@ write useful tools in python which are also fast to execute while in edit-mode.
For the time being this limitation just has to be worked around but we're aware its frustrating needs to be addressed.
+.. _info_gotcha_mesh_faces:
+
NGons and Tessellation Faces
============================
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py
index 54a3868c0d7..bfef94b35d7 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -230,10 +230,10 @@ if not ARGS.partial:
else:
# can manually edit this too:
- FILTER_BPY_OPS = ("import.scene", ) # allow
- FILTER_BPY_TYPES = ("bpy_struct", "Operator", "ID") # allow
+ #FILTER_BPY_OPS = ("import.scene", ) # allow
+ #FILTER_BPY_TYPES = ("bpy_struct", "Operator", "ID") # allow
EXCLUDE_INFO_DOCS = True
- EXCLUDE_MODULES = (
+ EXCLUDE_MODULES = [
"aud",
"bge",
"bge.constraints",
@@ -261,7 +261,7 @@ else:
"mathutils",
"mathutils.geometry",
"mathutils.noise",
- )
+ ]
# ------
# Filter
@@ -269,7 +269,18 @@ else:
# TODO, support bpy.ops and bpy.types filtering
import fnmatch
m = None
- EXCLUDE_MODULES = tuple([m for m in EXCLUDE_MODULES if not fnmatch.fnmatchcase(m, ARGS.partial)])
+ EXCLUDE_MODULES = [m for m in EXCLUDE_MODULES if not fnmatch.fnmatchcase(m, ARGS.partial)]
+
+ # special support for bpy.types.XXX
+ FILTER_BPY_OPS = tuple([m[8:] for m in ARGS.partial.split(":") if m.startswith("bpy.ops.")])
+ if FILTER_BPY_OPS:
+ EXCLUDE_MODULES.remove("bpy.ops")
+
+ FILTER_BPY_TYPES = tuple([m[10:] for m in ARGS.partial.split(":") if m.startswith("bpy.types.")])
+ if FILTER_BPY_TYPES:
+ EXCLUDE_MODULES.remove("bpy.types")
+
+ print(FILTER_BPY_TYPES)
EXCLUDE_INFO_DOCS = (not fnmatch.fnmatchcase("info", ARGS.partial))