Official Codebase of 3DCodeVerse
Python
texturing: texture_pass defaults its event log with 'is None', the idiom proc.NULL_EVENTS documents — 'events or …' replaced a passed-in empty (falsy) fake log
gaoypengd3858acebe05
diff --git a/harness/codeverse3d/texturing/run.py b/harness/codeverse3d/texturing/run.pyindex ce513d50..42a30351 100644--- a/harness/codeverse3d/texturing/run.py+++ b/harness/codeverse3d/texturing/run.py@@ -182,7 +182,7 @@ def texture_pass(before/after judge gate (BEFORE is always the untouched ``glb_in``) decideswhether the combined result ships."""t0 = time.time()- events = events or EventLog(ws.events_path)+ events = EventLog(ws.events_path) if events is None else eventsglb_in = Path(glb_in) if glb_in else ws.artifacts / "object.glb"if not glb_in.is_file():raise FileNotFoundError(f"no GLB to texture: {glb_in}")