diff options
author | Vilém Duha <vilda.novak@gmail.com> | 2020-07-01 22:26:03 +0300 |
---|---|---|
committer | Vilém Duha <vilda.novak@gmail.com> | 2020-07-12 19:07:58 +0300 |
commit | 37c2aacdb240fc6fd279d9f3b53cd37b88d90bfa (patch) | |
tree | 2669e6336858d17695edb2f1ede84eabb6acdcd8 /blenderkit | |
parent | 943d41d4438623e992b3c6919a2bb5a2b6818ff9 (diff) |
BlenderKit: switch thumbnails to sRGB
previously, Blender was double color correcting the images,
so these were set to linear by the addon. This was obviously fixed,
so BlenderKit thumbnails looked lighter.
Diffstat (limited to 'blenderkit')
-rw-r--r-- | blenderkit/search.py | 2 | ||||
-rw-r--r-- | blenderkit/ui.py | 2 | ||||
-rw-r--r-- | blenderkit/utils.py | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/blenderkit/search.py b/blenderkit/search.py index 474630e6..d77784d9 100644 --- a/blenderkit/search.py +++ b/blenderkit/search.py @@ -411,7 +411,7 @@ def load_previews(): img.unpack(method='USE_ORIGINAL') img.filepath = tpath img.reload() - img.colorspace_settings.name = 'Linear' + img.colorspace_settings.name = 'sRGB' i += 1 # print('previews loaded') diff --git a/blenderkit/ui.py b/blenderkit/ui.py index 0a6b96a8..f13b4778 100644 --- a/blenderkit/ui.py +++ b/blenderkit/ui.py @@ -876,7 +876,7 @@ def draw_callback_2d_search(self, context): else: iname = utils.previmg_name(ui_props.active_index) img = bpy.data.images.get(iname) - img.colorspace_settings.name = 'Linear' + img.colorspace_settings.name = 'sRGB' gimg = None atip = '' diff --git a/blenderkit/utils.py b/blenderkit/utils.py index 289ec817..5544ba3e 100644 --- a/blenderkit/utils.py +++ b/blenderkit/utils.py @@ -289,12 +289,12 @@ def get_hidden_image(tpath, bdata_name, force_reload=False): img.filepath = tpath img.reload() - img.colorspace_settings.name = 'Linear' + img.colorspace_settings.name = 'sRGB' elif force_reload: if img.packed_file is not None: img.unpack(method='USE_ORIGINAL') img.reload() - img.colorspace_settings.name = 'Linear' + img.colorspace_settings.name = 'sRGB' return img @@ -304,7 +304,7 @@ def get_thumbnail(name): img = bpy.data.images.get(name) if img == None: img = bpy.data.images.load(p) - img.colorspace_settings.name = 'Linear' + img.colorspace_settings.name = 'sRGB' img.name = name img.name = name |