Commit Graph
697 Commits
Author SHA1 Message Date
Dylan M. Taylor 267eff5c1e Pin merged shared material format 2026-11-15 13:08:27 +00:00
Dylan M. Taylor b02a3ab44a Exercise linked material cooks under coverage 2026-11-15 12:56:36 +00:00
Dylan M. Taylor dfd755e87d Merge remote-tracking branch 'origin/main' into codex/shared-mcmat-consumer
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/formats/Cargo.toml
2026-11-15 11:45:36 +00:00
Dylan M. Taylor 0d90953467 Share portable materials and preserve SBS links 2026-11-15 11:44:04 +00:00
Dylan M. Taylor c3f6b6f87b Merge pull request #488 from storytold/codex/778-stl-cutover
Move TextureCraft STL and MaterialX parsing to craft-libs (#778)
2026-11-15 06:42:18 -05:00
Dylan M. Taylor 32380b0dc5 Preserve MaterialX displacement tiling 2026-11-15 11:05:14 +00:00
Dylan M. Taylor ff09793577 Merge pull request #513 from storytold/codex/texturecraft-coverage-preview
Allow instrumented high-DPI preview to settle
2026-11-15 05:58:30 -05:00
Dylan M. Taylor 5d698625af Merge remote-tracking branch 'refs/remotes/origin/codex/texturecraft-coverage-preview' into HEAD 2026-11-15 10:24:36 +00:00
Dylan M. Taylor d7e534a657 Recognize explicit coverage compiler flags 2026-11-15 10:24:24 +00:00
Dylan M. Taylor 5f008e7272 Preserve TextureCraft STL vertex limits 2026-11-15 10:21:25 +00:00
Dylan M. Taylor c50032e8b2 Merge remote-tracking branch 'refs/remotes/origin/codex/texturecraft-coverage-preview' into HEAD 2026-11-15 10:00:59 +00:00
Dylan M. Taylor e897991533 test: allow instrumented high-DPI preview to settle 2026-11-15 09:59:44 +00:00
Dylan M. Taylor 75a3af1b62 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-15 09:57:40 +00:00
Dylan M. Taylor 75502053db formats: stop copying whole OBJ and glTF inputs before parsing (#503)
* formats: stop copying whole OBJ and glTF inputs before parsing

* formats: format the mesh-import copy changes
2026-11-15 04:18:22 -05:00
Chris Hassebrook ad3aa8c9b8 Merge pull request #480 from MorionTutoriales/perf/475-filter-fields-across-chunks
Frame-sliced recomposites filter a run of tiles once (#475)
2026-11-15 02:59:04 -05:00
chasse20 6825aac7e4 Auto: Integrate main and reduce compositor buffer lifetimes
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.
2026-11-15 07:14:57 +00:00
Chris Hassebrook a0e2cf1efc Merge pull request #477 from MorionTutoriales/experiment/cached-layer-image-dependencies
Avoid recompositing unrelated texture sets and layers after image imports
2026-11-15 00:18:27 -05:00
chasse20 7bfcf3fc27 Auto: Integrate main and reuse decoded material maps
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.
2026-11-15 04:16:43 +00:00
Chris Hassebrook 8c82502c32 Merge pull request #509 from storytold/docs/code-style-guide
Helpful Style Guidelines
2026-11-14 22:03:14 -05:00
chasse20 5e4f511f17 Added CODE_STYLE (not referenced by AGENTS) as helper for maintaining better code quality 2026-11-14 21:18:26 -05:00
Dylan M. Taylor 9ed81da8cb formats: account for the USDC path table's real allocation (#507)
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.
2026-11-14 17:28:04 -05:00
Dylan M. Taylor 0fa3a392fd formats: create atomic-write temps exclusively so a planted symlink is never followed (#502) 2026-11-14 17:23:06 -05:00
Dylan M. Taylor 73083d418a formats: cap default resource image decode at 64 M texels (#506)
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.
2026-11-14 17:02:27 -05:00
Dylan M. Taylor b89badcd6f Budget the total payload of one .mcmat (#499)
* formats: budget the total payload of one .mcmat

* formats: format the .mcmat map-limit test
2026-11-14 15:42:13 -05:00
Morion 74d213272d Release kept filter fields when a stroke begins during a sliced pass (#475)
Fields kept for the coming composites stayed allocated for as long as a
stroke lasted while tiles still followed, because the end-of-pass cleanup only
runs when none do. A stroke already kept them from being used; now it also
drops them. The test keeps fields first, then starts the stroke.
2026-11-13 14:20:27 -05:00
Morion 1a742d3fa4 Frame-sliced recomposites filter a run of tiles once (#475)
A stack with a neighbourhood filter (blur, high pass, bevel, glow...) made a
recomposite spread over frames many times slower than the same recomposite in
one call: every chunk filtered its own surroundings again, and on a machine
with many threads the filter's per-texel parallel steps cost more to hand out
than to run on a region of a few tiles.

- Neighbourhood filters split their per-texel work into tasks of at least
  16384 texels. Each texel is computed on its own, so results do not change.
- Session::update_for tells the compositor which dirty tiles follow the chunk
  in its block (up to 64). The compositor filters the chunk and those tiles at
  once and keeps the fields for the composites that follow, compared by
  everything the stack reads, and drops them at the end of the pass, after an
  edit, and under a live stroke.

Results are identical to the one-call composite: tests cover cold, warm and
partly evicted hot-layer caches, an edit mid-pass and a live stroke.
perf::bench_sliced_filters_4k times both paths.
2026-11-13 12:38:58 -05:00
Morion d5675e090b Keep cached layer composites across unrelated image imports 2026-11-13 09:38:39 -05:00
Morion a616e5ed06 experiment: scope invalidation of newly added material resources 2026-11-13 08:53:59 -05:00
Prajwal Raj 386630ee85 Stop reading Alembic indexed metadata after 255 entries (#464)
* 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)
2026-11-13 12:58:42 +01:00
FredAppsandFredApps afc1ee169b Preserve invalid ASCII FBX array values (#469)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-13 12:52:34 +01:00
8e83ac66f1 Cap FBX cameras during import (#450)
Fixes #445

Co-authored-by: GPT-6-Luna <noreply@openai.com>
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-13 12:09:02 +01:00
FredAppsandFredApps fe6ede90be Ignore repeated FBX geometry connections (#468)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-13 11:59:42 +01:00
FredAppsandFredApps 9f4ef44bd8 Decode half-float Alembic properties (#467)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-13 11:41:00 +01:00
Morion TutorialesandFredApps 277bbf3cf1 Import glTF scenes that have no nodes array (#438) (#457)
* 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>
2026-11-13 11:20:01 +01:00
FredAppsandFredApps 73c9f8f705 Bound FBX instance control-point work (#466)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-13 11:13:08 +01:00
Morion Tutoriales b982d66008 fix(compose): retain curvature cache layout variants (#459) 2026-11-13 08:28:43 +01:00
Dylan M. Taylor 1bf3707aec Cover interleaved STL color part order 2026-11-13 06:41:49 +00:00
Dylan M. Taylor bf25c1c536 Move TextureCraft STL parsing to craft-mesh 2026-11-13 06:33:26 +00:00
Dylan M. Taylor 4fd1b33c3c Use shared MaterialX parser and writer 2026-11-13 05:53:14 +00:00
FredApps 026a24f439 Merge pull request #220 from vangel76/fix/179-2d-brush-cursor
2D view: draw the brush outline under the pointer while painting
2026-11-13 02:29:18 +01:00
FredApps aa99a798a7 test(formats): split malformed scene fixtures for parallel CI (#455) 2026-11-13 00:15:49 +01:00
Chris Hassebrook a03f14ea88 Updating CI with local profile for faster runs (#453)
* Run CI on stable Rust and check layering earlier

* Add a faster profile for optimized verification
2026-11-12 22:21:42 +01:00
FredApps feb2a83b85 test(cli): resolve binary paths after nextest archive relocation (#454) 2026-11-12 21:59:43 +01:00
test-bit-sys 6270aeca05 fix(engine): reset paint target to content when undoing mask (#307) (#398)
* fix(engine): reset paint target to content when undoing mask (#307)

* fix(engine): resolve mask_owner in after_history and clear below cache in test (#307)
2026-11-12 17:56:41 +01:00
test-bit-sys a969983a52 fix(engine): resolve resource stem and list available names in layer.add.image (#337) (#391)
* fix(engine): resolve resource stem and list available names in layer.add.image (#337)

Accept an unambiguous file stem in layer.add.image alongside the full resource name with extension. When the requested resource is not found, list the available resources or guide the user to resource.import.

* fix(engine): filter image lookup stems and hints to decoded images (#337)
2026-11-12 17:56:34 +01:00
test-bit-sys e03e6fae6a fix(engine): reject unparseable colour parameters with an error (#369) (#390)
* fix(engine): reject unparseable colour parameters with an error (#369)

When a colour parameter cannot be parsed, fail with an error describing the expected color format instead of silently falling back to defaults.

Update color_param to return an explicit error and propagate across commands that accept color values.

* fix(engine): validate f32 overflow, pre-parse state mutations, and keep UV pairs strict (#369)
2026-11-12 17:56:19 +01:00
Chris Hassebrook 42c8ea5b3c Merge pull request #427 from MorionTutoriales/feat/shared-i18n-419
Migrate TextureCraft UI translations to shared craft-i18n
2026-11-11 22:22:41 -05:00
BFlat b1806e4010 Merge pull request #231 from vangel76/fix/217-generator-offset
Add an offset slider to mesh-map generators
2026-11-12 08:52:04 +07:00
Dylan M. Taylor 55015a7631 Fix Flatpak updates and bump to 0.6.1 (#426)
* fix(flatpak): allow release checks and self-update helpers

* test: keep Flatpak permission parsing within strict Clippy rules

* chore: bump version to 0.6.1 for the Flatpak update fix

* fix(flatpak): honor the launcher version choices
2026-11-11 18:38:56 -05:00
FredApps 7db38721e0 CI: nightly release dry run (#431)
release.yml also runs nightly on main with craft-common-actions' dry-run: every release build
except macOS, with nothing signed, pushed or drafted. Breakage that only the release build hits
(riscv64, Flatpak, FreeBSD, packaging) then shows up the next morning instead of on release
day, as it did on 11 Nov 2026.
2026-11-11 23:04:44 +01:00