[Bf-blender-cvs] [7f8014f9184] blender2.8: Revert "Icons: avoid error with colors out of 0-255 range"
Campbell Barton
noreply at git.blender.org
Thu Aug 23 13:36:07 CEST 2018
Commit: 7f8014f918422d2968b0b14ec5440aae89599fea
Author: Campbell Barton
Date: Thu Aug 23 21:36:51 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB7f8014f918422d2968b0b14ec5440aae89599fea
Revert "Icons: avoid error with colors out of 0-255 range"
This reverts commit 6e7da7616b6b02d2827f306ea4e55510a79b79de.
===================================================================
M 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)
)),
))
More information about the Bf-blender-cvs
mailing list