chore: also return file name as images [] so comfy deploy can catch and upload the file

This commit is contained in:
BennyKok
2023-12-21 15:59:54 +08:00
committed by EdwinWong
parent d6f1c82c07
commit 6e696359ab
+11 -1
View File
@@ -72,4 +72,14 @@ class AvatarMainOutput(blender_node.ObjectOps):
import global_bpy
global_bpy.set_should_reset_scene(True)
return {"ui": {"gltfFilename": {filepath.replace(f"{self.output_dir}/", "")}, "SHAPE_FLOW": {SHAPE_FLOW}, "auto_save": {'true' if auto_save else 'false'},}}
return {
"ui": {
"gltfFilename": {filepath.replace(f"{self.output_dir}/", "")},
"images": [{
"filename": filepath.replace(f"{self.output_dir}/", ""),
"type": "model/gltf+json",
},],
"SHAPE_FLOW": {SHAPE_FLOW},
"auto_save": {'true' if auto_save else 'false'},
}
}