diff options
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 |