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
diff options
context:
space:
mode:
authorGaia Clary <gaia.clary@machinimatrix.org>2018-11-23 00:03:35 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2018-11-23 00:03:35 +0300
commit5df55e184ec2965af9387519e3051ab109a27437 (patch)
treefc5acd02e57f4d11cf518fe6b523c45631748a40 /release/scripts/modules/bpy_extras/mesh_utils.py
parent76a18d555ce6a2af319b40a8131845f9123f7d31 (diff)
parent3fb77591f4d7cd31cfc4410b18d9d5e9ad135394 (diff)
Merge remote-tracking branch 'origin/blender2.8' into collada2.8
Diffstat (limited to 'release/scripts/modules/bpy_extras/mesh_utils.py')
-rw-r--r--release/scripts/modules/bpy_extras/mesh_utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/modules/bpy_extras/mesh_utils.py b/release/scripts/modules/bpy_extras/mesh_utils.py
index a09282da2fe..85356206482 100644
--- a/release/scripts/modules/bpy_extras/mesh_utils.py
+++ b/release/scripts/modules/bpy_extras/mesh_utils.py
@@ -239,7 +239,7 @@ def edge_loops_from_edges(mesh, edges=None):
return line_polys
-def ngon_tessellate(from_data, indices, fix_loops=True):
+def ngon_tessellate(from_data, indices, fix_loops=True, debug_print=True):
"""
Takes a polyline of indices (fgon) and returns a list of face
index lists. Designed to be used for importers that need indices for an
@@ -405,7 +405,8 @@ def ngon_tessellate(from_data, indices, fix_loops=True):
fill = [[vert_map[i] for i in reversed(f)] for f in fill]
if not fill:
- print('Warning Cannot scanfill, fallback on a triangle fan.')
+ if debug_print:
+ print('Warning Cannot scanfill, fallback on a triangle fan.')
fill = [[0, i - 1, i] for i in range(2, len(indices))]
else:
# Use real scanfill.