mirror of
https://git.datalinker.icu/kijai/ComfyUI-Hunyuan3DWrapper.git
synced 2025-12-08 20:34:28 +08:00
accept more upload formats
This commit is contained in:
parent
7bba1dd89a
commit
26a57e86b0
2
nodes.py
2
nodes.py
@ -961,7 +961,7 @@ class Hy3DLoadMesh:
|
|||||||
class Hy3DUploadMesh:
|
class Hy3DUploadMesh:
|
||||||
@classmethod
|
@classmethod
|
||||||
def INPUT_TYPES(s):
|
def INPUT_TYPES(s):
|
||||||
mesh_extensions = ['glb', 'gltf']
|
mesh_extensions = ['glb', 'gltf', 'obj', 'ply', 'stl', '3mf']
|
||||||
input_dir = folder_paths.get_input_directory()
|
input_dir = folder_paths.get_input_directory()
|
||||||
files = []
|
files = []
|
||||||
for f in os.listdir(input_dir):
|
for f in os.listdir(input_dir):
|
||||||
|
|||||||
@ -76,7 +76,7 @@ function addUploadWidget(nodeType, nodeData, widgetName) {
|
|||||||
|
|
||||||
Object.assign(fileInput, {
|
Object.assign(fileInput, {
|
||||||
type: "file",
|
type: "file",
|
||||||
accept: ".glb,.gltf,model/gltf-binary,model/gltf+json",
|
accept: ".obj,.glb,.gltf,.stl,.3mf,.ply,model/obj,model/gltf-binary,model/gltf+json,application/vnd.ms-pki.stl,application/x-stl,application/vnd.ms-package.3dmanufacturing-3dmodel+xml,application/x-ply,application/ply",
|
||||||
style: "display: none",
|
style: "display: none",
|
||||||
onchange: async () => {
|
onchange: async () => {
|
||||||
if (fileInput.files.length) {
|
if (fileInput.files.length) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user