Merge pull request #128 from Runware/feature-3dquickfix

Feature 3dquickfix
This commit is contained in:
Sirshendu Ganguly
2026-04-15 11:12:14 +05:30
committed by GitHub
3 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -35,7 +35,7 @@ class RunwareSave3D:
FUNCTION = "save_3d"
OUTPUT_NODE = True
CATEGORY = "Runware"
DESCRIPTION = "Save 3D model files (GLB/PLY) from Runware 3D Inference to the output folder."
DESCRIPTION = "Save 3D model files (GLB/PLY/FBX) from Runware 3D Inference to the output folder."
def save_3d(self, filenamePrefix="ComfyUI", **kwargs):
"""Save 3D file from URL"""
@@ -55,8 +55,8 @@ class RunwareSave3D:
url_without_params = file_url.split('?')[0]
extension = url_without_params.split('.')[-1].lower()
if extension not in ["glb", "ply"]:
raise Exception(f"Unsupported 3D file extension '{extension}' from URL. Expected .glb or .ply.")
if extension not in ["glb", "ply", "fbx"]:
raise Exception(f"Unsupported 3D file extension '{extension}' from URL. Expected .glb, .ply, or .fbx.")
# Sanitize filenamePrefix to prevent path traversal or arbitrary subdir creation
prefix_basename = os.path.basename(
+1 -1
View File
@@ -15,7 +15,7 @@ class threeDInference:
}
# Output formats
OUTPUT_FORMATS = ["GLB", "PLY"]
OUTPUT_FORMATS = ["GLB", "PLY", "FBX"]
@classmethod
def INPUT_TYPES(cls):
File diff suppressed because one or more lines are too long