diff options
author | Vilém Duha <vilda.novak@gmail.com> | 2021-02-05 18:16:46 +0300 |
---|---|---|
committer | Vilém Duha <vilda.novak@gmail.com> | 2021-02-05 18:16:46 +0300 |
commit | 1b4485a4b7b266deb303e23f41dc2a5de4f61b66 (patch) | |
tree | d237dad024cf14c5906edba3938b54ee2e06455b /blenderkit/image_utils.py | |
parent | dfeb905d62ae6d759d8da930f291e73505e6ca67 (diff) |
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
Diffstat (limited to 'blenderkit/image_utils.py')
-rw-r--r-- | blenderkit/image_utils.py | 7 |
1 files changed, 5 insertions, 2 deletions
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 |