mirror of
https://git.datalinker.icu/kijai/ComfyUI-Hunyuan3DWrapper.git
synced 2026-05-12 09:21:25 +08:00
Update nodes.py
This commit is contained in:
parent
04b4d350a0
commit
b8e2d2c800
3
nodes.py
3
nodes.py
@ -1031,6 +1031,9 @@ class Hy3DLoadMesh:
|
|||||||
DESCRIPTION = "Loads a glb model from the given path."
|
DESCRIPTION = "Loads a glb model from the given path."
|
||||||
|
|
||||||
def load(self, glb_path):
|
def load(self, glb_path):
|
||||||
|
|
||||||
|
if not os.path.exists(glb_path):
|
||||||
|
glb_path = os.path.join(folder_paths.get_input_directory(), glb_path)
|
||||||
|
|
||||||
trimesh = Trimesh.load(glb_path, force="mesh")
|
trimesh = Trimesh.load(glb_path, force="mesh")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user