diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-29 17:51:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-29 17:51:15 +0300 |
commit | 79638c5c304a241faeaab4f991fa9c40f5a1a4d7 (patch) | |
tree | a47ca6bd204c4b10b00d6fcc9e47f6be8157f39f /release/datafiles/blender_icons_geom.py | |
parent | 695326eb8fbf4518ec5d963ca92a69b95df4ac3f (diff) |
UI: backface cull generated icons
Allows for keeping icons 3D without adding extra geometry at export.
Diffstat (limited to 'release/datafiles/blender_icons_geom.py')
-rw-r--r-- | release/datafiles/blender_icons_geom.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/release/datafiles/blender_icons_geom.py b/release/datafiles/blender_icons_geom.py index fa7f48f90a2..a0edc2152a8 100644 --- a/release/datafiles/blender_icons_geom.py +++ b/release/datafiles/blender_icons_geom.py @@ -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] |