From 1b4485a4b7b266deb303e23f41dc2a5de4f61b66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vil=C3=A9m=20Duha?= Date: Fri, 5 Feb 2021 16:16:46 +0100 Subject: BlenderKit: improve colorspace handling a bit further thanks to Robert Guetzkow. Default import setting for models is now Append. Fix maximum workhours rating for fast rate operator Update categories file --- blenderkit/image_utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'blenderkit/image_utils.py') diff --git a/blenderkit/image_utils.py b/blenderkit/image_utils.py index 7f2945d9..fa33e8f6 100644 --- a/blenderkit/image_utils.py +++ b/blenderkit/image_utils.py @@ -59,9 +59,12 @@ def set_colorspace(img, colorspace): colorspace settings, and it literally can't be guessed what these people use, even if it will mostly be the filmic addon. ''' try: - img.colorspace_settings.name = colorspace + if colorspace == 'Non-Color': + img.colorspace_settings.is_data = True + else: + img.colorspace_settings.name = colorspace except: - print('Colorspace {colorspace} not found.') + print(f'Colorspace {colorspace} not found.') def generate_hdr_thumbnail(): scene = bpy.context.scene -- cgit v1.2.3