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:
authorDalai Felinto <dalai@blender.org>2022-05-25 16:52:54 +0300
committerDalai Felinto <dalai@blender.org>2022-05-25 16:56:48 +0300
commitf381c31ac69cb8a6175a54dc31863e13e9b199d6 (patch)
tree748548afbec0cd8cc7ef2db2eb5da2adb2e9a1cc /CMakeLists.txt
parent288e7d0af0c251b109736890ffab636f47943181 (diff)
UI: Update icons after the latest changes in the generator script
There should be no visible change. The difference is mostly on how we changed the rounding to handle the conversion from color space to the new linear space of the attribute colors. To convert the materials in icon_geom.blend I used: ``` import bpy from mathutils import Color def convert_material(material): if not material.use_nodes: return if not material.node_tree: return node_tree = material.node_tree for node in node_tree.nodes: if node.type != 'RGB': continue color_original = node.outputs[0].default_value color_new = Color(color_original[:3]).from_srgb_to_scene_linear() color = (*color_new, color_original[3]) node.outputs[0].default_value = color def main(): for material in bpy.data.materials: convert_material(material) main() ```
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions