UI: backface cull generated icons

Allows for keeping icons 3D without adding extra geometry at export.
This commit is contained in:
Campbell Barton
2018-04-29 16:51:15 +02:00
parent 695326eb8f
commit 79638c5c30

View File

@@ -87,6 +87,11 @@ def write_mesh_data_lists(me):
tris_colors = []
for p in me_polys:
# Backface culling (allows using spheres without tedious manual deleting).
if p.normal.z <= 0.0:
continue
l_sta = p.loop_start
l_len = p.loop_total
loops_poly = me_loops[l_sta:l_sta + l_len]