Commit Graph
397 Commits
Author SHA1 Message Date
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
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
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
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
FredApps bd03a0411f texturecraft-cli: follow RFC-0018 (clap, thiserror, run(args, out, err), packaged completions and man pages) (#875)
* texturecraft-cli: follow RFC-0018 (clap, thiserror, run(args, out, err), packaged completions and man pages)

Closes #866. Part of storytold/craft-contrib#95.

* fix(cli): enable clap env, and close replacement and token gaps

- Enable clap's `env` feature so TEXTURECRAFT_CONTROL_TOKEN compiles in a
  standalone `-p texturecraft-cli` release build (the FreeBSD package job).
- An inherited token no longer implies --bridge; only a command-line
  --token does.
- Compare run/bake/new outputs to the path Headless::save actually writes
  (it appends .tcraft when the extension is missing).
- Apply the same replacement rule to batch (save vs open), with --in-place.
- Build man-and-completions for the host when CARGO_BUILD_TARGET is set.
- Don't panic in the blank-token test when the environment already has a
  token.

* fix(cli): require both roots for headless mcp

AGENTS.md rule 18 says an agent entry point must refuse to start without
--automation-read-root and --automation-write-root (the --read-root /
--write-root aliases here). Headless mcp now exits 2 unless both are
set; --bridge is unchanged. The missing-CLI_DOCS diagnostic also names
the host-example env -u CARGO_BUILD_TARGET prefix already used to build it.
2026-11-28 01:01:49 +01:00
RebornimandClaude Opus 5.5 088a217d7b Merge main into feat/export-pass
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 23:00:30 +00:00
Chris Hassebrook 4e8cdd6f97 Merge pull request #843 from Rebornim/feat/bake-pass-3
Bake pass 3: the Baking Log, out-of-date mesh maps and Auto-rebake
2026-11-27 17:33:15 -05:00
dependabot[bot]andFredApps edb8456d62 ci(deps): bump the actions group across 1 directory with 6 updates (#831)
* ci(deps): bump the actions group across 1 directory with 6 updates

Bumps the actions group with 6 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [step-security/harden-runner](https://github.com/step-security/harden-runner) | `2.22.4` | `2.23.0` |
| [storytold/craft-common-actions/actions/checkout-craft-fonts](https://github.com/storytold/craft-common-actions) | `605d58766e8f536564da8fc81d3676ac86816dea` | `f94a43818dabb2e85f2f4d5cd768bb8e5662600a` |
| [storytold/craft-common-actions/actions/checkout-craft-i18n](https://github.com/storytold/craft-common-actions) | `605d58766e8f536564da8fc81d3676ac86816dea` | `f94a43818dabb2e85f2f4d5cd768bb8e5662600a` |
| [storytold/craft-common-actions/actions/rust-channel](https://github.com/storytold/craft-common-actions) | `605d58766e8f536564da8fc81d3676ac86816dea` | `f94a43818dabb2e85f2f4d5cd768bb8e5662600a` |
| [storytold/craft-common-actions/.github/workflows/nightly-release.yml](https://github.com/storytold/craft-common-actions) | `be00e5ccd18b68e950c8a08532f2230e7c3d0cba` | `f94a43818dabb2e85f2f4d5cd768bb8e5662600a` |
| [storytold/craft-common-actions/.github/workflows/nightly-unsigned.yml](https://github.com/storytold/craft-common-actions) | `be00e5ccd18b68e950c8a08532f2230e7c3d0cba` | `f94a43818dabb2e85f2f4d5cd768bb8e5662600a` |



Updates `step-security/harden-runner` from 2.22.4 to 2.23.0
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](https://github.com/step-security/harden-runner/compare/1d88384fd173af6ecb012dfd0264a306b711241a...aebdcf6156ab6691adf63218240e476564a1ed4c)

Updates `storytold/craft-common-actions/actions/checkout-craft-fonts` from 605d58766e8f536564da8fc81d3676ac86816dea to f94a43818dabb2e85f2f4d5cd768bb8e5662600a
- [Commits](https://github.com/storytold/craft-common-actions/compare/605d58766e8f536564da8fc81d3676ac86816dea...f94a43818dabb2e85f2f4d5cd768bb8e5662600a)

Updates `storytold/craft-common-actions/actions/checkout-craft-i18n` from 605d58766e8f536564da8fc81d3676ac86816dea to f94a43818dabb2e85f2f4d5cd768bb8e5662600a
- [Commits](https://github.com/storytold/craft-common-actions/compare/605d58766e8f536564da8fc81d3676ac86816dea...f94a43818dabb2e85f2f4d5cd768bb8e5662600a)

Updates `storytold/craft-common-actions/actions/rust-channel` from 605d58766e8f536564da8fc81d3676ac86816dea to f94a43818dabb2e85f2f4d5cd768bb8e5662600a
- [Commits](https://github.com/storytold/craft-common-actions/compare/605d58766e8f536564da8fc81d3676ac86816dea...f94a43818dabb2e85f2f4d5cd768bb8e5662600a)

Updates `storytold/craft-common-actions/.github/workflows/nightly-release.yml` from be00e5ccd18b68e950c8a08532f2230e7c3d0cba to f94a43818dabb2e85f2f4d5cd768bb8e5662600a
- [Commits](https://github.com/storytold/craft-common-actions/compare/be00e5ccd18b68e950c8a08532f2230e7c3d0cba...f94a43818dabb2e85f2f4d5cd768bb8e5662600a)

Updates `storytold/craft-common-actions/.github/workflows/nightly-unsigned.yml` from be00e5ccd18b68e950c8a08532f2230e7c3d0cba to f94a43818dabb2e85f2f4d5cd768bb8e5662600a
- [Commits](https://github.com/storytold/craft-common-actions/compare/be00e5ccd18b68e950c8a08532f2230e7c3d0cba...f94a43818dabb2e85f2f4d5cd768bb8e5662600a)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-version: 2.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: storytold/craft-common-actions/.github/workflows/nightly-release.yml
  dependency-version: 1754016e67ca9b74dfa4cf4678b2ac3548e9840f
  dependency-type: direct:production
  dependency-group: actions
- dependency-name: storytold/craft-common-actions/.github/workflows/nightly-unsigned.yml
  dependency-version: 1754016e67ca9b74dfa4cf4678b2ac3548e9840f
  dependency-type: direct:production
  dependency-group: actions
- dependency-name: storytold/craft-common-actions/actions/checkout-craft-fonts
  dependency-version: 1754016e67ca9b74dfa4cf4678b2ac3548e9840f
  dependency-type: direct:production
  dependency-group: actions
- dependency-name: storytold/craft-common-actions/actions/checkout-craft-i18n
  dependency-version: 1754016e67ca9b74dfa4cf4678b2ac3548e9840f
  dependency-type: direct:production
  dependency-group: actions
- dependency-name: storytold/craft-common-actions/actions/rust-channel
  dependency-version: 1754016e67ca9b74dfa4cf4678b2ac3548e9840f
  dependency-type: direct:production
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>

* ci: keep nightly tooling-revision and signing policy in lockstep

Dependabot bumped the nightly-unsigned and nightly-release uses pins to
f94a438 but left tooling-revision and the installed signing policy on
be00e5c. The packaging checks require those pins to match.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-27 22:55:20 +01:00
chasse20 0d8f00ce30 Auto: Fix bake cancellation and integrate upstream desktop changes
Keep eligible maps from an interrupted bake in one undo step and preserve completed texture sets. Add resource status, update, and relink commands and the desktop Resources Updater.

Integrate Xwayland pointer support for Linux pens, Russian language selection and packaging metadata, private staging for MaterialCraft handoffs, and release-change notifications. Update tests and documentation for the affected behavior.
2026-11-27 21:47:23 +00:00
chasse20 b93c1a285d Merge validated target into TextureCraft bake review 2026-11-27 21:36:52 +00:00
Chris Hassebrook ffb2ecf390 Merge pull request #836 from vangel76/feat/wayland-tablet-816
Linux: open the window through Xwayland when a pen is attached on Wayland, so the pen works
2026-11-27 16:01:12 -05:00
chasse20 e274358a56 Auto: Integrate main and fix bake freshness and cancellation
Preserve Resources Updater links and bake provenance when replacing or clearing mesh maps. Keep unrelated maps on unchanged UV atlases, discard partial results from failed workers, and reject overflowing texture-set indices.

Track vertex colors, part assignments, tangent frames and the packed file used by material-color bakes. Share the common source fingerprint across each task's selected maps. Add reimport, cancellation and atlas regressions, update the control protocol, and clarify the affected code.
2026-11-27 21:00:57 +00:00
SteamSmith c53813e6ac Merge pull request #691 from JaffarSk24/i18n-offer-russian
i18n: offer Russian in the language picker.

- ru (Русский) is added to LANGUAGES. A Russian system (ru-RU, ru-SK, ru_RU.UTF-8) now starts in Russian once the catalog (storytold/craft-i18n#334) is embedded; the locale test covers those tags.
- Cyrillic no longer counts as a script needing a fallback font: the bundled UI fonts already carry every Russian letter, including Ё/ё and «».
- Docs (ROADMAP, features, localization-parity) now list eleven languages.

Without the catalog the picker entry falls back to English, as for other languages. Tests pin the UI harnesses to English where needed.
2026-11-27 15:02:57 -05:00
chasse20 59270b4a52 Auto: Validate Xwayland setup before selecting X11 and integrate main
Keep native Wayland when the local X server rejects setup or lacks the requested screen. Cover rejected and accepted replies, document pointer support and Flatpak access, and retain the PhotoCraft copyright and license notices.

Focused Linux desktop, titlebar and framework tests passed, along with Clippy, formatting, layers and wasm checks.
2026-11-27 19:58:00 +00:00
Kirill M b4e9c17575 docs: the CJK and Arabic picks need a font for their script
The language picker greys out a language whose script no available font covers, so a web build with catalogs but without craft-fonts cannot pick Japanese, Chinese, Korean or Arabic.
2026-11-27 07:16:23 +01:00
Rebornim e3c299963b List the Baking Log, out-of-date mesh maps and Auto-rebake in the features 2026-11-27 06:13:17 +00:00
Rebornim de7515bf1a Keep a stroke's box and the stroke count through undo and reimport, and give the bake rows' reasons to screen readers
The painted box of an auto-rebake map now lives in the document, so
undoing the rebake of a stroke makes the map due again (the stroke stays
painted while the map goes back to its pixels from before it), and a
rolled-back bake.run needs no hand-kept copy. A mesh reimport carries the
stroke count on; before, a bake after a reimport saw every earlier stroke
as newer and kept its box.

The Baking Log rows, the out-of-date clock and the generator's bake note
put their reasons in the accessibility tree, not only in a tooltip, and a
folding high poly row exposes whether it is expanded. bake.log is kept off
the shortcut list. PressEdit gets its own file, region_keeps_pixels moves
beside RegionBake, and auto_rebake_due computes each map's source once.
2026-11-27 06:13:17 +00:00
Rebornim ff51384164 Keep a canceled bake's finished maps and name the rebaked map in the footer
Cancelling a bake threw away the maps the running texture set had already
finished, so the Baking Log turned their ticks into warnings. The set now
keeps them as one undo step, also when the preview closed because Bake
mode was left; only maps that had not finished warn, and a map it did not
finish keeps its out-of-date mark. A bake at a new output size keeps none,
since storing them would drop the set's other maps.

An auto-rebake started its preview with every checked map of the set, so
the progress footer named the set's first map ("Baking Normal (1/7)") while
it rebaked AO. The preview now lists only the maps the rebake makes.
2026-11-27 06:12:44 +00:00
Rebornim f39e99069c Turn Auto-rebake on for the Normal map when skew painting starts
The first skew stroke of a texture set turns Auto-rebake on for its
Normal map, unless the set already has an auto-rebake map; it is part
of the stroke's undo step.
2026-11-27 06:12:44 +00:00
Rebornim 4a56683bb9 Rebake the auto-rebake map inside a skew or cage stroke
A skew or cage stroke on a set that bakes from a high poly marks its UV
box; in Bake mode the app then bakes the set's auto-rebake map again
only there (one texel wider, for the paint map's sampling), keeps the
rest of the stored map and pads the whole map, so its pixels match a
whole bake. Maps scaled by their whole range (curvature, height,
thickness), UV-tiled sets and a map stored at another size bake whole.
A stroke painted while that bake runs is baked by the next one. The bake
crate gains bake_tiles_in with a texel box.
2026-11-27 06:12:44 +00:00
Rebornim 9e36885648 Rebake the auto-rebake map when its settings change
Each texture set can turn on Auto-rebake for one mesh map (bake.autoRebake,
saved with the project; older projects have none). In Bake mode the app
rebakes that map alone in the background once what it is baked from has
stopped changing for half a second; a change during that bake cancels it
and the newest settings bake instead. Only a failed rebake makes a toast.
2026-11-27 06:12:44 +00:00
Rebornim 530541a97a Remember what each baked map was baked from
Each bake records, per map, fingerprints of the low poly geometry, the
high poly and cage files, the settings every map shares (with the UV
tiles baked) and the map's own settings, taken when the set's bake
starts. A map whose inputs differ now is out of date, with what changed;
project.inspect lists those per texture set as outOfDate.

The record is saved with the project and left out when empty, so
projects saved before it open unchanged and their maps never show out of
date. Imported maps keep no record either.
2026-11-27 06:12:35 +00:00
Rebornim 373159ec5e List how the bake paired parts by name in the Baking Log 2026-11-27 06:12:35 +00:00
Rebornim c0839e873e List each set's high poly files in the Baking Log 2026-11-27 06:12:35 +00:00
Rebornim dfafec43c1 Report the Baking Log's rows through bake.log
Automation gets the latest bake map by map with each map's state and
the error of a failed one, the same rows the Baking Log shows.
2026-11-27 06:12:35 +00:00
chasse20 6703898b94 Auto: Integrate IOR reflectance with the Resources Updater
Merge main's IOR reflectance setting alongside resource source tracking.
Preserve both archive fields, integration test modules, and protocol
sections, along with the approved image-link, preview, and export repairs.
2026-11-27 06:02:22 +00:00
chasse20 87b70dae3f Auto: Preserve material image links and defer offscreen previews
Share bounded resource naming across image, PBR and MaterialX imports so duplicate names survive a project round trip. Stream changed images into one undo step, preserve mesh-map ownership, and restore decoded pixels after a rejected edit.

Load updater thumbnails as they enter view. Expose package explanations and update outcomes to assistive technology, and keep the public MaterialX byte loader compatible.

Integrate main's autosave naming, export-normal option and generator inspection. Borrow geometry for default GLB and USD exports. Remove the duplicate native UI test dependency.
2026-11-27 05:53:05 +00:00
chasse20 03edcaa1c6 Auto: Integrate main into the reviewed IOR changes
Preserve the approved IOR save and reflectance changes alongside main’s per-project autosave names, opt-in mesh normal recomputation, and legacy generator inspection. The prepared merge required no manual conflict resolution.
2026-11-27 04:59:40 +00:00
chasse20 d9926733a9 Auto: Preserve IOR edits across background saves
Track IOR-related display changes in the save revision and preserve the exact legacy reflectance scale at IOR 1.5. Improve the shader checkbox outline and cover its contrast and keyboard behavior.

Reuse wrapped CPU trace coordinates, shorten tracer staging lifetimes, and avoid per-set template channel ID allocations. Document the separate glass-interface Fresnel calculation.

Verified with local workspace gate coverage, affected release suites, software rendering, and the shader rail snapshot.
2026-11-27 04:53:09 +00:00
a2andClaude Sonnet 5.5 d98fb4c640 chore(i18n): merge main; drop the English test pins now that the UI language is per thread (#797)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 19:42:32 -05:00
aiongg 58c9bc07e3 Merge pull request #854 from MorionTutoriales/fix/851-autosave-names
Autosave: give each project its own copy (#851)
2026-11-26 18:35:00 -05:00
aiongg d6dfd69bcd Merge pull request #850 from Ap3pp3rs94/feat/mesh-export-recompute-normals
feat(mesh): make normal recomputation a real export option
2026-11-26 18:01:18 -05:00
autocraft-bot[bot] 1b32764b7a Merge main into fix/851-autosave-names 2026-11-26 21:48:58 +00:00
autocraft-bot[bot] 448d22aa26 Apply review fixes
- docs/ui-parity.md
2026-11-26 21:31:02 +00:00
vangel76 da7dab8118 Merge storytold main (1f77416a) into feat/749-ior-specular-f0 2026-11-26 21:55:19 +01:00
vangel76 f2205d5591 Resources Updater: list linked MaterialCraft materials as rows without a file
resource.status gains the status material for the package of every linked
MaterialCraft material (fill layers and material effects); such a row
cannot be updated or relinked from disk, and its status tooltip says it
updates when MaterialCraft cooks it again. Tests also check that an
environment map and a brush alpha are tracked like other images.
2026-11-26 21:18:37 +01:00
vangel76 8b11099717 Merge storytold main into feat/resources-updater-817
Conflicts resolved:
- crates/engine/tests/it/main.rs, crates/ui-egui/tests/it/main.rs: kept both
  test modules (rebuilt_uv_layout, resource_updater; resources_updater,
  sample_project) in name order.
- crates/ui-egui/src/lib.rs: Toast keeps main's announce field and this
  branch's action field; both constructors set both.
- docs/control-protocol.md: main's ui.menu.invoke and Open Sample Project
  rows, with this branch's note that the Resources Updater button is enabled
  while a project is open.
2026-11-26 19:40:00 +01:00
vangel76 3a25b45ea6 Merge storytold main (1f77416a) into feat/wayland-tablet-816
docs/features.md: kept main's title-bar sentence (prefs.system_title_bar through ui.set) and this branch's Wayland pen entry.
2026-11-26 19:04:50 +01:00
chasse20 11597318ab Merge remote-tracking branch 'origin/main' into HEAD 2026-11-26 16:52:39 +00:00
Morion e9a1dc5867 Merge remote-tracking branch 'origin/main' into fix/851-autosave-names 2026-11-26 08:39:16 -05:00
Chris Hassebrook d422c821f2 Merge pull request #772 from vangel76/fix/effect-stacks-769
Toggle material and mask effects from their thumbnails
2026-11-26 06:36:38 -05:00
chasse20 3adefe418a Auto: Integrate main and preserve shortcut recording
Integrate main at 6b01f32e with the shared UI runtime and warp toolbar. Initialize main’s shortcut dispatcher alongside the PR’s lazy conflict cache.

Preserve Escape modifiers when the runtime routes the press as a window cancel. Add a regression test for the reserved Shift+Escape warning in Settings.
2026-11-26 11:36:06 +00:00
FredApps 6b64c5b9af Merge main into feat/export-pass 2026-11-26 09:05:57 +01:00
FredApps 2cbbebfd3f Preserve texture set hover in the IOR branch merge 2026-11-26 08:27:47 +01:00
autocraft-bot[bot] eda265b470 Apply requested fixes
- crates/ui-egui/src/autosave_name.rs
- docs/features.md
2026-11-26 07:21:04 +00:00
autocraft-bot[bot] 6a3b3c1ba0 Merge main into feat/mesh-export-recompute-normals 2026-11-26 07:13:22 +00:00
Chris Hassebrook 6b01f32eab Merge pull request #837 from vangel76/feat/warp-toolbar-805
Warp tool bar in the top bar: gizmo modes, place on surface, snapping, mirrors and resets
2026-11-26 01:00:38 -05:00
FredApps 46d84d5b23 Merge main into TextureCraft effect-stack changes 2026-11-26 06:43:42 +01:00
Morion 23d3f9ae71 Autosave: give each project its own copy
The copy was named after the project, whose name comes from the mesh file, so projects made from one mesh overwrote each other's autosave. It is now `<stem>-<suffix>.tcraft`: from the saved file and its path, or a suffix of its own while the project is unsaved. A project opened from its copy keeps writing to it.

Fixes #851
2026-11-26 00:27:10 -05:00