diff --git a/blenderkit/__init__.py b/blenderkit/__init__.py index 2a98518cb007aa87f209f943edf75d3fc5ab4e27..b02985e00cdbdf61c7da4d36c825cf9435f78ce8 100644 --- a/blenderkit/__init__.py +++ b/blenderkit/__init__.py @@ -970,7 +970,7 @@ class BlenderKitModelUploadProps(PropertyGroup, BlenderKitCommonUploadProps): update=autothumb.update_upload_model_preview) thumbnail_background_lightness: FloatProperty(name="Thumbnail Background Lightness", - description="set to make your material stand out", default=.9, + description="set to make your material stand out", default=1.0, min=0.01, max=10) thumbnail_angle: EnumProperty( diff --git a/blenderkit/autothumb_model_bg.py b/blenderkit/autothumb_model_bg.py index 9173391e86d4ef0e51d5b26790a8114dddb407d6..fe58a52fa5d0a5e31616446df1e0ec8b8fff2262 100644 --- a/blenderkit/autothumb_model_bg.py +++ b/blenderkit/autothumb_model_bg.py @@ -139,19 +139,19 @@ if __name__ == "__main__": bpy.context.view_layer.update() # import blender's HDR here - hdr_path = Path('datafiles/studiolights/world/interior.exr') - bpath = Path(bpy.utils.resource_path('LOCAL')) - ipath = bpath / hdr_path - ipath = str(ipath) + # hdr_path = Path('datafiles/studiolights/world/interior.exr') + # bpath = Path(bpy.utils.resource_path('LOCAL')) + # ipath = bpath / hdr_path + # ipath = str(ipath) # this stuff is for mac and possibly linux. For blender // means relative path. # for Mac, // means start of absolute path - if ipath.startswith('//'): - ipath = ipath[1:] - - img = bpy.data.images['interior.exr'] - img.filepath = ipath - img.reload() + # if ipath.startswith('//'): + # ipath = ipath[1:] + # + # img = bpy.data.images['interior.exr'] + # img.filepath = ipath + # img.reload() bpy.context.scene.render.resolution_x = int(data['thumbnail_resolution']) bpy.context.scene.render.resolution_y = int(data['thumbnail_resolution']) diff --git a/blenderkit/blendfiles/thumbnailer.blend b/blenderkit/blendfiles/thumbnailer.blend index 4a27eeabd0db57e0e41ada23d9f0e16850a1ee7b..07b0619ccaecde001806342e47f975202fb68f1d 100644 Binary files a/blenderkit/blendfiles/thumbnailer.blend and b/blenderkit/blendfiles/thumbnailer.blend differ