Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-08-23 14:36:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-08-23 14:36:51 +0300
commit7f8014f918422d2968b0b14ec5440aae89599fea (patch)
tree8956af65c43d06854768592d202a89ee843c0453 /release/datafiles/blender_icons_geom.py
parent73f90b250551566c576588ed4fae88d6ad9d1162 (diff)
Revert "Icons: avoid error with colors out of 0-255 range"
This reverts commit 6e7da7616b6b02d2827f306ea4e55510a79b79de.
Diffstat (limited to 'release/datafiles/blender_icons_geom.py')
-rw-r--r--release/datafiles/blender_icons_geom.py2
1 files changed, 1 insertions, 1 deletions
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)
)),
))