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:
parent
dfeb905d62
commit
1b4485a4b7
|
@ -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
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue