diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-05-25 14:34:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-05-25 14:35:45 +0300 |
commit | f83f7bb98848eb9d0c0a2fa773df985454a96690 (patch) | |
tree | e380ea736eaf18fdbde02b9d3839f1401c7be02d /release/scripts/modules/bpy_types.py | |
parent | dcd2136f958aac95fd19c568581595f6d6cfeb56 (diff) |
Add warning to Mesh.from_pydata
Diffstat (limited to 'release/scripts/modules/bpy_types.py')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index c1a37d10961..d194de32bf3 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 |