Skip to content
Snippets Groups Projects
Commit 1b4485a4 authored by Vilém Duha's avatar Vilém Duha
Browse files

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
parent dfeb905d
No related branches found
No related tags found
No related merge requests found
......@@ -1402,7 +1402,7 @@ class BlenderKitModelSearchProps(PropertyGroup, BlenderKitCommonSearchProps):
),
description="Appended objects are editable in your scene. Linked assets are saved in original files, "
"aren't editable but also don't increase your file size",
default="LINK_COLLECTION"
default="APPEND_OBJECTS"
)
append_link: EnumProperty(
name="How to Attach",
......
This diff is collapsed.
......@@ -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
......
......@@ -337,7 +337,7 @@ class FastRateMenu(Operator):
rating_work_hours: FloatProperty(name="Work Hours",
description="How many hours did this work take?",
default=0.00,
min=0.0, max=150, update=update_ratings_work_hours
min=0.0, max=300, update=update_ratings_work_hours
)
rating_work_hours_ui: EnumProperty(name="Work Hours",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment