bugfix: SAM Editor error when using image from Mask Editor
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import configparser
|
||||
import os
|
||||
|
||||
version = "V2.18"
|
||||
version = "V2.18.1"
|
||||
|
||||
dependency_version = 1
|
||||
|
||||
|
||||
@@ -100,6 +100,8 @@ async def sam_prepare(request):
|
||||
if image_dir is None:
|
||||
typ = data['type'] if data['type'] != '' else 'output'
|
||||
image_dir = folder_paths.get_directory_by_type(typ)
|
||||
if data['subfolder'] is not None and data['subfolder'] != '':
|
||||
image_dir += f"/{data['subfolder']}"
|
||||
|
||||
if image_dir is None:
|
||||
return web.Response(status=400)
|
||||
|
||||
Reference in New Issue
Block a user