From 552633fc76fb6abdc642f7e45ae110aaf5cdad38 Mon Sep 17 00:00:00 2001 From: Andrea Pozzetti Date: Thu, 12 Feb 2026 22:59:40 +0100 Subject: [PATCH] removed some unicode --- comfy-env.toml | 1 + nodes/_utils/mesh_ops.py | 12 ++++++------ requirements.txt | 3 ++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/comfy-env.toml b/comfy-env.toml index 1d291182..23d4426e 100644 --- a/comfy-env.toml +++ b/comfy-env.toml @@ -27,6 +27,7 @@ isolated = true # Run all nodes in isolated environment "tqdm>=4.60.0", "torch", "requests>=2.25.0", + "msvc-runtime", # Mesh processing "libigl>=2.6.1", diff --git a/nodes/_utils/mesh_ops.py b/nodes/_utils/mesh_ops.py index c16693c4..b428d6a6 100644 --- a/nodes/_utils/mesh_ops.py +++ b/nodes/_utils/mesh_ops.py @@ -178,7 +178,7 @@ def _load_vtk_mesh(file_path: str) -> Tuple[Optional[trimesh.Trimesh], str]: mesh.metadata['file_name'] = os.path.basename(file_path) mesh.metadata['file_format'] = os.path.splitext(file_path)[1].lower() - print(f"[load_mesh_file] ✓ Successfully loaded VTK: {len(mesh.vertices)} vertices, {len(mesh.faces)} faces") + print(f"[load_mesh_file] [OK] Successfully loaded VTK: {len(mesh.vertices)} vertices, {len(mesh.faces)} faces") return mesh, "" except Exception as e: @@ -224,7 +224,7 @@ def load_mesh_file(file_path: str) -> Tuple[Optional[trimesh.Trimesh], str]: loaded.metadata['file_name'] = os.path.basename(file_path) loaded.metadata['file_format'] = os.path.splitext(file_path)[1].lower() loaded.metadata['is_pointcloud'] = True - print(f"[load_mesh_file] ✓ Successfully loaded pointcloud: {len(loaded.vertices)} points") + print(f"[load_mesh_file] [OK] Successfully loaded pointcloud: {len(loaded.vertices)} points") return loaded, "" # Handle case where trimesh.load returns a Scene instead of a mesh @@ -246,7 +246,7 @@ def load_mesh_file(file_path: str) -> Tuple[Optional[trimesh.Trimesh], str]: pointcloud.metadata['file_name'] = os.path.basename(file_path) pointcloud.metadata['file_format'] = os.path.splitext(file_path)[1].lower() pointcloud.metadata['is_pointcloud'] = True - print(f"[load_mesh_file] ✓ Successfully loaded as pointcloud: {len(pointcloud.vertices)} points") + print(f"[load_mesh_file] [OK] Successfully loaded as pointcloud: {len(pointcloud.vertices)} points") return pointcloud, "" print(f"[load_mesh_file] Initial mesh: {len(mesh.vertices)} vertices, {len(mesh.faces)} faces") @@ -298,7 +298,7 @@ def load_mesh_file(file_path: str) -> Tuple[Optional[trimesh.Trimesh], str]: mesh.metadata['file_name'] = os.path.basename(file_path) mesh.metadata['file_format'] = os.path.splitext(file_path)[1].lower() - print(f"[load_mesh_file] ✓ Successfully loaded: {len(mesh.vertices)} vertices, {len(mesh.faces)} faces") + print(f"[load_mesh_file] Successfully loaded: {len(mesh.vertices)} vertices, {len(mesh.faces)} faces") return mesh, "" except Exception as e: @@ -344,10 +344,10 @@ def load_mesh_file(file_path: str) -> Tuple[Optional[trimesh.Trimesh], str]: mesh.metadata['file_name'] = os.path.basename(file_path) mesh.metadata['file_format'] = os.path.splitext(file_path)[1].lower() - print(f"[load_mesh_file] ✓ Successfully loaded via libigl: {len(mesh.vertices)} vertices, {len(mesh.faces)} faces") + print(f"[load_mesh_file] Successfully loaded via libigl: {len(mesh.vertices)} vertices, {len(mesh.faces)} faces") return mesh, "" except Exception as e2: - print(f"[load_mesh_file] ✗ Both loaders failed!") + print(f"[load_mesh_file] Both loaders failed!") return None, f"Error loading mesh: {str(e)}; Fallback error: {str(e2)}" diff --git a/requirements.txt b/requirements.txt index c72852b3..c33d2570 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ # Installation dependencies (for install.py optimization) comfy-env>=0.0.19 comfy-dynamic-widgets>=0.0.2 -comfy-3d-viewers>=0.1.0 \ No newline at end of file +comfy-3d-viewers>=0.1.0 +msvc-runtime \ No newline at end of file