diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-08-21 15:44:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-08-21 15:44:58 +0300 |
commit | 6e7da7616b6b02d2827f306ea4e55510a79b79de (patch) | |
tree | 71997e0048017e12b2944564bbe46d795875af17 /release/datafiles/blender_icons_geom.py | |
parent | dbcc96334a1c0afa31340822787050d5b841e2c6 (diff) |
Icons: avoid error with colors out of 0-255 range
Diffstat (limited to 'release/datafiles/blender_icons_geom.py')
-rw-r--r-- | release/datafiles/blender_icons_geom.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/datafiles/blender_icons_geom.py b/release/datafiles/blender_icons_geom.py index f3af7f997c1..b9f7c05ac31 100644 --- a/release/datafiles/blender_icons_geom.py +++ b/release/datafiles/blender_icons_geom.py @@ -162,7 +162,7 @@ def mesh_data_lists_from_mesh(me, material_colors): ), # RGBA color. tuple(( - [int(c * b * 255) for c, b in zip(cn.color, base_color)] + [min(max(int(c * b * 255), 0), 255) for c, b in zip(cn.color, base_color)] for cn in (c0, c1, c2) )), )) |