Propagate compression errors through USD writer values, sections and finish. Bound worst-case output reservation by the existing 2GiB app ceiling; preserve normal wire bytes and scene policy.
Co-authored-by: bflatastic <bombayapirat@gmail.com>
Keep the existing aggregate decoded byte budget, integer writer and scene mapping. Depends on craft-libs #1742 and TextureCraft #531.
Co-authored-by: bflatastic <bombayapirat@gmail.com>
Retain SteamSmith original writer as a test-only wire oracle, including bflatastic is_multiple_of cleanup. Colour adaptation, sampling, names and fixed timestamp remain local policy.
Co-authored-by: SteamSmith <341182916+SteamSmith@users.noreply.github.com>
Co-authored-by: bflatastic <bflat@storyteller.ai>
Preserve filter lookahead alongside main image-cache invalidation and input
bounds. Move HeldFields into its own module and finish scoped cleanup.
Charge repeated USD path names before allocating retained strings.
Reuse the blur transpose-back buffer and release scattered texels before
allocating filter temporaries.
Validated compose/engine release tests, Clippy, layering, wasm and formatting.
Preserve main's decoder, atomic-save, material-payload, and USDC limits.
Bound material reads by the remaining payload budget and trim retained
buffers. Replace quadratic image-name searches with map lookups, and
cache validated linked-material maps before synchronization so they
are not decoded twice.
Add import/undo/redo and payload-boundary regressions, extract
ImageIdentity, remove the unchecked scratch example, and complete
scoped cleanup. Correct the integrated style guide's product name.
Validated 546 release tests, Clippy, layering, wasm, formatting, and
focused allocation and lifetime probes.
The PATHS table charged 64 bytes per entry but allocates Option<PathEl> (about 80), letting a small declared count exceed the decoded-byte budget, and had no entry ceiling. Charge the real element size and cap the table at four million paths.
Imported images still used the 16384-pixel edge limit with no texel ceiling, so a small 16k square PNG expanded to multi-gigabyte RGBA f32 buffers. Default resource decoding now refuses more than 8192 square texels from the header, and the engine import path uses the same budget.
* fix(formats): stop reading Alembic indexed metadata after 255 entries (#447)
Objects and properties refer to indexed metadata with one byte, and 0xff already means the metadata is stored inline, so only entries 0 to 254 can ever be used. The reader kept every entry, so a block of zero bytes cost a whole String in memory for each byte of file. It now stops once 255 entries are held.
* test(formats): verify indexed metadata during archive import (#447)
* Import glTF scenes that have no nodes array (#438)
The gltf crate requires scene.nodes, but the glTF 2.0 schema lists no
required properties for a scene. Blender writes such scenes for scenes with
no exported objects, so a file whose default scene was fine failed with
'missing field nodes'. Treat a missing array as empty before the document is
built.
* Test GLB import with an empty scene
---------
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Previously, if any object in an OBJ mesh lacked texture coordinates, all UVs across all objects were discarded and replaced with a full automatic unwrap.
Skip empty models without indices, preserve existing UVs on textured objects while assigning default UVs to untextured helper/sub-objects, and report a warning without forcing a full mesh unwrap.
The 8 GiB MAX_TOTAL guard on open and the save-side check are removed (maintainer
decision). The per-resource and mesh limits stay.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The worker cap of 8 and the fixed 3 GiB in-flight budget are gone. Prefs gets
'cores kept for the UI' (default 1, 0 or more) and 'max RAM while saving'
(default 50% of the free RAM).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>