[Bf-blender-cvs] [bd4b091] compositor-2016: Add warning to Mesh.from_pydata
Campbell Barton
noreply at git.blender.org
Wed Jun 8 21:50:05 CEST 2016
Commit: bd4b0914340c4ae6fa8ff18c1a8bba7552e0c581
Author: Campbell Barton
Date: Wed May 25 21:34:48 2016 +1000
Branches: compositor-2016
https://developer.blender.org/rBbd4b0914340c4ae6fa8ff18c1a8bba7552e0c581
Add warning to Mesh.from_pydata
===================================================================
M release/scripts/modules/bpy_types.py
===================================================================
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py
index c1a37d1..d194de3 100644
--- a/release/scripts/modules/bpy_types.py
+++ b/release/scripts/modules/bpy_types.py
@@ -408,6 +408,14 @@ class Mesh(bpy_types.ID):
the *vertices* argument. eg: [(5, 6, 8, 9), (1, 2, 3), ...]
:type faces: iterable object
+
+ .. warning::
+
+ Invalid mesh data
+ *(out of range indices, edges with matching indices,
+ 2 sided faces... etc)* are **not** prevented.
+ If the data used for mesh creation isn't known to be valid,
+ run :class:`Mesh.validate` after this function.
"""
from itertools import chain, islice, accumulate
More information about the Bf-blender-cvs
mailing list