Commit Graph
1692 Commits
Author SHA1 Message Date
Rebornim ca4ea4bccf Layers: shorten the enabled-check comment 2026-11-29 06:43:49 +00:00
Rebornim 71d1202a24 Merge main into feat/layers-pass 2026-11-29 06:43:09 +00:00
Chris Hassebrook b65ef83c63 Merge pull request #223 from simonhull/fix/panic-safe-session-edit
Restore the document when a command panics mid-edit
2026-11-29 00:08:00 -05:00
Chris Hassebrook 8e6c845272 Merge pull request #206 from Silvertree2010/fix/201-launcher-install-texturecraft-ca
Find MaterialCraft in the sibling launcher install folder
2026-11-29 00:07:13 -05:00
Chris Hassebrook 248247c5c4 Merge pull request #192 from JonRC/fix/headless-render-without-compute
Headless render on adapters without compute shaders, and the wgpu env vars
2026-11-29 00:06:47 -05:00
Chris Hassebrook 5ceb532e8d Merge pull request #863 from Rebornim/feat/brush-props-pass
Paint tool Properties parity: brush, alpha, stencil and material tabs
2026-11-29 00:03:52 -05:00
Dylan M. Taylor 886c7d8aa5 fix(nightly): enable Linux package_formats (including Flatpak) in signing policy (#904) 2026-11-28 22:41:27 -05:00
SteamSmithandClaude Sonnet 5.5 14cd65692e fix: same_document ignores crate-private Document fields (main added painted_regions)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 21:11:06 -05:00
SteamSmith 219b3490c8 Merge remote-tracking branch 'origin/main' into work/223 2026-11-28 21:06:32 -05:00
SteamSmithandClaude Sonnet 5.5 aabf1c06dc fix: a failed or panicking edit marks the restored document's tiles dirty again
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:55:04 -05:00
SteamSmithandClaude Sonnet 5.5 d6f6f30169 test(192): spawn the CLI through cli_binary() so nextest archives on another runner find it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:55:03 -05:00
SteamSmithandClaude Sonnet 5.5 b6dbef1b34 test(192): the no-compute test also checks the GPU baker refuses with a reason
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:41:25 -05:00
SteamSmithandClaude Sonnet 5.5 45ea33d09d fix(render): size-limit tests no longer assume wgpu's default 256 MiB buffer limit
The headless device now asks for the adapter's own limits, so on a desktop GPU the 8192x8192
reset in failed_reset_retains_the_active_render succeeds and the test failed. The test now uses a
device capped at 256 MiB (Headless::with_buffer_cap, test only). Also: ImageRes fields are private
on main, so the environment-usage test builds its image with ImageRes::new.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:21:36 -05:00
SteamSmithandClaude Sonnet 5.5 12632c3652 merge: origin/main into fix/headless-render-without-compute
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:21:36 -05:00
SteamSmith 5f116a74cf Merge remote-tracking branch 'origin/main' into review/206-fix
# Conflicts:
#	crates/engine/src/link_cmds.rs
2026-11-28 19:20:45 -05:00
Dylan M. Taylor 846553d13d ci: pin storytold/craft-common-actions to @main universally (#901) v0.6.1-nightly.20261129.46218807490.1.g846553d13d90 2026-11-28 16:07:28 -05:00
Dylan M. Taylor ded20a74bd ci(sonar): exclude diagnostic wasm_size_report.py CLI script from taint analysis (#900) v0.6.1-nightly.20261128.46182144970.1.gded20a74bdd9 2026-11-28 14:37:04 -05:00
chasse20 b1a0944f89 Auto: Integrate main and resolve catalog embedding conflict
Preserve distinct-character collection for font subsetting alongside main's catalog accessor and compressed wasm embedding. Exercise the generated accessor with both populated and empty catalogs.
2026-11-28 19:13:49 +00:00
Dylan M. Taylor 4336c9accd fix(web): inline realpath prefix check in wasm_size_report.py for SonarCloud (#899) 2026-11-28 13:24:25 -05:00
SteamSmithandClaude Sonnet 5.5 5ebe488019 test(render): an adapter without compute shaders gets a tracer error, not a panic
Builds a no-op adapter with WebGL2-class limits: the viewport renderer still builds and the GPU
path tracer refuses with a message naming compute shaders.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 12:51:39 -05:00
Dylan M. Taylor c80f93efd3 ci(nightly): pin shared signing workflows, move macOS notices to Resources/docs, and fix profile reopen (#896)
* ci(nightly): pin shared signing workflows, move macOS notices to Resources/docs, and fix profile reopen

* style(profile_root): format with rustfmt
2026-11-28 11:51:05 -05:00
SteamSmithandClaude Sonnet 5.5 0097f99053 test(engine): edge cases for find_installed_tool (folder named like the tool, no parent, missing app folder)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 10:30:31 -05:00
FredApps 6339b30cbc Merge pull request #894 from storytold/fix/wasm-size-profile
web: get the wasm under the 24 MiB gate (size profile, deflated embedded data, size report)
2026-11-28 15:41:43 +01:00
Rebornim 9d6531c43f Name the view camera and view mode pickers for screen readers
Both boxes showed only their value, so they had no accessible name.
Once the window settles, the accessibility check fails on them in a short
window (rail::history_actions_remain_reachable_in_a_short_window).
2026-11-28 09:46:59 +00:00
FredApps 7001cac3eb ui-egui: name each generated font file after its full craft-fonts path
Faces that share a file name in different folders no longer overwrite
each other under OUT_DIR.
2026-11-28 15:53:44 +07:00
chasse20 ccf2ad6b52 Auto: Restore neutral quick-mask previews and clarify size jitter
Show neutral coverage in the brush preview while editing the quick mask. Add a headless regression for the tint transition and document how pressure and jitter independently affect 3D stamp size.
2026-11-28 08:46:07 +00:00
FredApps 2332602c4e web: embed fonts, catalogs, the icon font and the studio HDR deflated
The web build is under a 24 MiB download budget. Its embedded data is
now stored deflated and inflated once at startup: the craft-fonts faces,
the translation catalogs, the Phosphor icon font and the studio
environment HDR. egui's default faces come from craft-ui's deflated
copies instead of egui's default_fonts feature, and the engine's
built-in text fonts (Ubuntu Light, Hack) come from the same copies
through text_cmds::provide_built_in_fonts. Desktop builds are unchanged.
2026-11-28 15:37:56 +07:00
chasse20 31d1b7b241 Auto: Integrate main and honor brush preview channel toggles
Bring in main's project rename changes. Use the existing preview fallbacks for disabled Base Color, Metallic, and Roughness channels while preserving their values for re-enabling. Cover the rendered preview with a regression test.
2026-11-28 08:27:36 +00:00
FredApps e70e4cbf84 Merge remote-tracking branch 'origin/main' into fix/wasm-size-profile 2026-11-28 09:16:22 +01:00
FredApps bf379a3937 web: only read .wasm files under the repo or CARGO_TARGET_DIR in the size report 2026-11-28 09:16:22 +01:00
Chris Hassebrook 5e8ccdb9d3 Merge pull request #864 from MorionTutoriales/fix/857-rename-project
Make the project renamable (#857)
2026-11-28 03:09:53 -05:00
chasse20 f2176331a0 Auto: Integrate main into Paint Properties
Preserve desktop autosave recovery and retain the package and cooked maps of linked materials used in effects. Keep both lockfile dependency entries and the approved Paint Properties changes.
2026-11-28 08:08:38 +00:00
chasse20 32c89f35f4 Auto: Integrate main and repair paint, asset, and export previews
Keep main's Assets, Export, and headless parity changes alongside the unified Paint Properties sheet. Preserve history on fully blocked strokes, release obsolete preview resources, and redraw brush and stencil pictures at the correct scale and placement.

Load visible thumbnails on demand, resize common custom previews from borrowed pixels, and release stale file textures and project notifications. Index favorite ranks per draw and remove unused resources without repeated library scans.

Preserve export folds across job startup. Share idle plans between the footer and file tree, borrow running-job plans, and avoid redundant label measurements and template copies. Collect distinct catalog characters before sorting them for font subsetting.

Repair the Assets snapshot setup, isolate saved-brush test files, and clarify affected code and regression fixtures.
2026-11-28 08:00:03 +00:00
Chris Hassebrook a7180a23ba Merge pull request #879 from MorionTutoriales/fix/851-recovered-copy
Autosave: open a copy as an unsaved project
2026-11-28 02:41:51 -05:00
chasse20 b955de0e4d Auto: Fix MaterialX filename collision test
Use a real duplicate texture path in the fixture so literal token substitution remains intact. Validate the engine integration suite with the updated main.
2026-11-28 07:31:51 +00:00
FredApps c1a395f3fa web: size-optimize the wasm profile and report the biggest contributors
The web build's wasm has been over the 24 MiB gate in packaging/web/package.sh
since the nightly Release dry run of 23 Nov. This change brings it down by about
4.2 MB; it does not bring it under the gate on its own.

- Cargo.toml: the wasm-release profile uses opt-level "z" instead of "s". The
  crates that rely on inlining (fearless_simd, vello_cpu, vello_common,
  craft-image-codecs, texturecraft-core) stay at "s", because they come out
  larger at "z". The per-pixel crates stay at opt-level 3.
- packaging/web/wasm_size_report.py: lists the wasm's sections and its largest
  crates and functions.
- packaging/web/package.sh: when the size gate fails, it prints that report.
2026-11-28 08:23:58 +01:00
Chris Hassebrook 7f16522d87 Merge pull request #889 from Rebornim/fix/images-used-material-effects
Assets: Remove unused keeps the package and maps of a material linked in a content effect
2026-11-28 01:41:44 -05:00
chasse20 4c1d486fc4 Auto: Integrate main and fix rename validation and export naming
Preserve both branches’ engine tests. Validate the project name before applying other dialog settings, clear discarded text undo history, and keep an unsaved project’s autosave filename stable across renames.

Expand export tokens once, preserve literal text in names, and sanitize flat stems directly. Reuse the dialog’s name buffer and update the command documentation and generated headless parity report.
2026-11-28 06:39:00 +00:00
chasse20 7b06725641 Auto: Fix recovery aliases and control replies after integrating main
Recognize alternate spellings of the same autosave without detaching an independent file. Return the recovered session's actual path and modified state from desktop file.open, borrow command parameters, and move the inspection result into its reply.

Extend the disk regression to verify both the recovered autosave and an explicit Save As after the original project autosaves again. Record the conditional file-identity dependency and its attribution.
2026-11-28 06:38:55 +00:00
Chris Hassebrook 7c8dd1ae4e Merge pull request #255 from SteamSmith/fix/mesh-folder-symlinks
Files a mesh references must stay inside its folder once links are followed
2026-11-27 22:55:58 -05:00
Chris Hassebrook d41cf01f7f Merge pull request #827 from Rebornim/feat/export-pass
Export pass: layered PSD, per-map size, shader settings, Esc, hover preview, look and spec-backed templates
2026-11-27 22:55:22 -05:00
Chris Hassebrook 216b199c5d Merge pull request #844 from Rebornim/feat/assets-pass-2
Assets panel pass 2: a right-click menu on every asset, favorites, a drag ghost that says where it can drop, automatic updates and a second Assets panel
2026-11-27 22:54:04 -05:00
Rebornim 31bf2a58ca Assets: Remove unused keeps the package and maps of a material linked in a content effect
images_used counted a linked material's package and cooked maps only on a fill layer, so
Remove unused dropped them (and a smart material left them out) when the link sat in a
content fill effect.
2026-11-28 02:33:59 +00:00
SteamSmithandClaude Sonnet 5.5 8c06badf77 fix(engine): find MaterialCraft in the launcher's sibling folder, tested in a temp dir
A pure find_installed_tool(app_dir, exe) is tested in a temp folder (sibling
found, beside-the-program wins, missing is None) instead of writing into target/.
The 'did not start' hints name the sibling folder; control-protocol.md lists the step.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 21:16:33 -05:00
Rebornim 4c181c9904 docs: say the stencil is skipped on the quick mask and in the 2D UV view 2026-11-28 01:30:42 +00:00
FredApps 95d90ee453 Parity: RFC-0052 headless column in the parity report (#888)
docs/parity.md gets a headless column computed from the engine registry that texturecraft-cli and the MCP server load: 21 yes, 40 no (window 33, os 5, engine-gap 2), 3 partial, 0 unknown of 64 items, per RFC-0052.
2026-11-28 02:21:37 +01:00
ff18396f78 Keep the web build under its size gate by subsetting CJK fonts (#803)
* web: cut the CJK interface face to the catalogs' characters

The scheduled Release dry run's Web (wasm) job has failed since 23 Nov 2026:
the wasm is 27,128,780 bytes against the 25,165,824-byte gate in
packaging/web/package.sh, and against Cloudflare's 25 MiB per-file cap.

Parsing the last green artifact puts 7.4 MB of the 24.8 MB module in embedded
fonts, of which the whole Japanese face is 4.67 MB. WordCraft already cuts its
web interface faces to the embedded catalogs (craft-libs' craft-fonts-build
`Embed::subset_to`, with `Embed::for_ui`); this app still embedded the whole
face.

A web build now subsets every face whose manifest script is Hans/Hant/Jpan/Kore
to the characters of the embedded catalogs, plus ASCII, Latin-1 and general
punctuation, and keeps the CJK punctuation block (U+3000-303F) and the kana
blocks (U+3040-30FF) whatever the catalogs say, so Japanese a user types in a
layer or file name still draws. That is craft-libs' precedent minus the
katakana phonetic extensions and the full-width forms, which cost a further
5 KB and are not in the cut. The subsetter is the skera/skrifa pair the Inter
cut already uses. The cut Japanese face is 650,268 bytes instead of 4,669,688,
so the wasm comes back to about 23.1 MB, under the gate with about 2.0 MB to
spare. The desktop build is unchanged and keeps its CJK faces whole.

Trade-off, as in WordCraft: CJK characters outside the catalogs and those
ranges (kanji, full-width forms) fall back to the interface font in the
browser build only.

* ui: drop the catalog builder's unused source-only entry point

cargo xtask ci's clippy leg (--all-targets -- -D warnings) fails the
ui-egui build script on `i18n_build::generate`: since the web font cut,
the build script only calls `embed`, so the wrapper is dead code in that
compilation unit and `-D dead-code` rejects it.

The integration test was its only caller, and it drives `collect`
directly elsewhere, so the tests keep a local `generate` wrapper over
`i18n_build::collect` and the production module stops carrying a function
nothing builds.

* docs: state the web CJK subset's coverage accurately

Han ideographs that are not in the shipped catalogs are omitted from the
web face and render as missing glyphs. Desktop still embeds the full faces.

* style: let cargo fmt order the skera import

The earlier rustfmt pass put the function before the types; cargo fmt
(with this repo's rustfmt.toml) wants Plan and SubsetFlags first.

---------

Co-authored-by: skylartaylor <skylartaylor@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-28 01:57:32 +01:00
Rebornim 7e0bd1e6a2 Assets: the refresh popup's tests move a rewritten file's time on
Main's Resources Updater counts an equal-size file whose modification
time didn't move as unchanged, so a rewrite in the same millisecond as
the import read as up to date and the test failed on the gate.
2026-11-28 00:33:49 +00:00
chasse20 cd45779684 Auto: Integrate main's RFC-0018 CLI changes
Keep the approved export repairs alongside the new CLI and packaging. Preserve both branches' Cargo dependency declarations and protocol documentation.
2026-11-28 00:30:16 +00:00
chasse20 091869033a Auto: Preflight export paths and label tiled atlas previews
Reject selections that use one output path as both a file and a folder before rendering or starting a desktop export. Expose tile metadata in export.plan and use it to label atlas previews, including ambiguous filenames.

Write quantized 8-bit PSD rows directly into the merged-image buffer. Cover path conflicts in both orders, partial desktop writes, and visible atlas captions with regression tests.
2026-11-28 00:21:21 +00:00