diff options
author | Vilém Duha <vilda.novak@gmail.com> | 2019-11-19 02:32:59 +0300 |
---|---|---|
committer | Vilém Duha <vilda.novak@gmail.com> | 2019-11-19 02:34:49 +0300 |
commit | f445b50bba33fdb327b8b5e4a61695e563459fc8 (patch) | |
tree | d887509fc12d28449a076ea548db02f0d7736f08 | |
parent | 8611c655d4e050e6b7436b82a081984d889d4027 (diff) |
BlenderKit: fix (large) rating UI slowdown due to setting image colorspace each step
-rw-r--r-- | blenderkit/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/blenderkit/utils.py b/blenderkit/utils.py index eebdb078..7b8160a3 100644 --- a/blenderkit/utils.py +++ b/blenderkit/utils.py @@ -237,11 +237,12 @@ def get_hidden_image(tpath, bdata_name, force_reload=False): img.filepath = tpath img.reload() + img.colorspace_settings.name = 'Linear' 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 = 'Linear' return img |