MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / main

Function main

Scripts/clean_meshes.py:472–485  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

clean_meshes.pyFile · 0.70

Calls 1

process_xmlFunction · 0.85

Tested by

no test coverage detected