From 7f8014f918422d2968b0b14ec5440aae89599fea Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 23 Aug 2018 21:36:51 +1000 Subject: Revert "Icons: avoid error with colors out of 0-255 range" This reverts commit 6e7da7616b6b02d2827f306ea4e55510a79b79de. --- release/datafiles/blender_icons_geom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'release/datafiles/blender_icons_geom.py') diff --git a/release/datafiles/blender_icons_geom.py b/release/datafiles/blender_icons_geom.py index b9f7c05ac31..f3af7f997c1 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(( - [min(max(int(c * b * 255), 0), 255) for c, b in zip(cn.color, base_color)] + [int(c * b * 255) for c, b in zip(cn.color, base_color)] for cn in (c0, c1, c2) )), )) -- cgit v1.2.3