Revert "Revert "allow upport for inputs.mesh""

This reverts commit 9c93d9648f.
This commit is contained in:
Sirshendu Ganguly
2026-02-13 16:06:03 -05:00
parent 9c93d9648f
commit cdf8b55da2
8 changed files with 66 additions and 2 deletions
+8
View File
@@ -15,6 +15,10 @@ class threeDInferenceInputs:
"mask": ("IMAGE", {
"tooltip": "Optional mask image to specify a region of interest in the input image for 3D generation."
}),
"meshFile": ("STRING", {
"default": "",
"tooltip": "Base64 data URI of mesh file (.glb or .ply) from Runware Load Mesh, or media UUID from Runware Media Upload.",
}),
}
}
@@ -28,6 +32,7 @@ class threeDInferenceInputs:
"""Create 3D inference inputs from provided parameters"""
image = kwargs.get("image", None)
mask = kwargs.get("mask", None)
mesh_file = kwargs.get("meshFile", "")
inputs = {}
@@ -37,6 +42,9 @@ class threeDInferenceInputs:
if mask is not None:
inputs["mask"] = rwUtils.convertTensor2IMG(mask)
if mesh_file and isinstance(mesh_file, str) and mesh_file.strip():
inputs["meshFile"] = mesh_file.strip()
return (inputs,)