[Bf-blender-cvs] [f83f7bb] master: Add warning to Mesh.from_pydata

Campbell Barton noreply at git.blender.org
Wed May 25 13:26:41 CEST 2016


Commit: f83f7bb98848eb9d0c0a2fa773df985454a96690
Author: Campbell Barton
Date:   Wed May 25 21:34:48 2016 +1000
Branches: master
https://developer.blender.org/rBf83f7bb98848eb9d0c0a2fa773df985454a96690

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