Files
PozzettiAndrea-ComfyUI-Geom…/javascript
PozzettiAndrea 7ce6f73269 Preview Mesh Batch (VTK): label the dropdown with mesh names
The dropdown showed positions ("3 / 16"); show the source name ("apple.ply")
instead. Loaders already stash the basename in mesh.metadata['file_name']
(mesh_io.py) and it survives the worker boundary (serialization.py forwards
metadata), so the node just reads it per mesh and returns a mesh_names array.

- Python: collect names (metadata['file_name'] -> metadata['name'] -> a
  positional fallback) and add "mesh_names" to the UI arrays.
- JS: dropdown options are now built as real <option> elements with
  textContent = name (falling back to "k / N"), so a filename cannot inject
  markup. Also added a "Name" row to the info panel (escaped).

Verified: python compiles, JS parses, isolation lint still 0 errors.
2026-08-14 13:26:35 +02:00
..