()
| 470 | mesh_name = mesh_el.get("name", "?") |
| 471 | |
| 472 | if not actual_source.exists(): |
| 473 | print(f"\n x Source not found: {actual_source}") |
| 474 | continue |
| 475 | |
| 476 | if glb_up_to_date(output_glb, actual_source): |
| 477 | print(f"\n Skipping '{mesh_name}' (GLB up to date): {output_glb.name}") |
| 478 | success_count += 1 |
| 479 | continue |
| 480 | |
| 481 | print(f"\n[{mesh_name}] {actual_source.name} -> {output_glb.name}") |
| 482 | if convert_mesh(actual_source, output_glb): |
| 483 | success_count += 1 |
| 484 | else: |
| 485 | print(f" x FAILED to convert {actual_source.name}") |
| 486 | # Never leave a stale or partial GLB behind: the importer |
| 487 | # prefers .glb over the source mesh, so a leftover here would |
| 488 | # silently ship the very data the conversion just refused to |
no test coverage detected