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
This commit is contained in:
Vilém Duha 2021-02-05 16:16:46 +01:00
parent dfeb905d62
commit 1b4485a4b7
4 changed files with 4766 additions and 1978 deletions

View File

@ -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",

File diff suppressed because it is too large Load Diff

View File

@ -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

View File

@ -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",