mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-19 14:00:43 +01:00
A .gltf whose buffers or images are separate files, and a loose USD layer whose UsdPreviewSurface textures sit next to it, now open, reimport and bake as high polys with those files, and projects keep them: `self_contained_mesh` folds a .gltf's files in as data URIs and packages a loose layer with its textures as a .usdz, so the stored mesh imports from its bytes alone. Only files inside the mesh's folder are read (no absolute paths, URLs or `..` above it); missing ones are named in the log. - formats: `self_contained_mesh`, `read_mesh_file` and `MeshFile`; `import_mesh` uses them; the glTF reader no longer reads the disk itself; USD texture lookups go through one `Assets` source (usdz package or loose files) - engine: file.open, file.new, file.reimportMesh, bake.highPoly.add and bake.cage.set read meshes this way; a failed reimport no longer leaves the session pointing at the new file - automation: mesh_import / mesh.import read the files under the same workspace rules - CLI `info` reports a .gltf with external buffers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>