Commit Graph
12993 Commits
Author SHA1 Message Date
David Mann 2680a3b3fe Merge pull request #4451 from davidmann4/batch/davidmann4-2026-11-30
Batch: six of my open craft-libs PRs (#4383, #4348, #4340, #4338, #4337, #4323)
2026-11-30 11:01:14 +01:00
autocraft-bot[bot] eb29d76619 Merge pull request #4452 from storytold/integration-craft-libs-20261130-2
Integration batch integration-craft-libs-20261130-2
2026-11-30 09:47:25 +00:00
autocraft-bot[bot] 0e92e67bde Merge pull request #4450 from storytold/integration-craft-libs-20261130-1
Integration batch integration-craft-libs-20261130-1
2026-11-30 09:31:56 +00:00
David Mann d300b35cd8 Merge #4348 (review fix) into the batch 2026-11-30 10:14:07 +01:00
David Mann dd783b15e3 Merge #4340 (review fix) into the batch 2026-11-30 10:14:06 +01:00
David MannandClaude Opus 5.5 40ef337ff9 ui-widgets: a truncated typed value counts only float error as already at its precision
The "already there" tolerance was 1e-9 of the value, which at 9 decimals is more
than a whole unit: 1.2345678919 rounded up to 1.234567892. It is now a few units
of the last place, so it is cut to 1.234567891 and 1.15 still stays 1.15.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:13:45 +01:00
autocraft-bot[bot] ba8a2b943e Merge pull request #4428 2026-11-30 09:10:14 +00:00
David MannandClaude Opus 5.5 9890e02ed2 draw: the Pencil's Angle keeps the host's angle in an edit's before
Only a proposed angle (an Update, or a Commit's or Set's after) is made whole
and held to -180..180; a before keeps the host's value, so a cancel or an undo
restores a fractional angle as it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:08:39 +01:00
autocraft-bot[bot] fc56018cb6 Merge pull request #4375 2026-11-30 08:47:12 +00:00
David Mann 4d9ed376c5 Merge #4348 into the batch
# Conflicts:
#	crates/draw/tests/it/brush_presets.rs
#	crates/ui-widgets/src/text/number.rs
2026-11-30 09:46:58 +01:00
David Mann 370fd6a1ac Merge #4323 into the batch 2026-11-30 09:45:03 +01:00
David Mann 13fd0454f2 Merge #4340 into the batch 2026-11-30 09:45:03 +01:00
David Mann 20572c58e1 Merge #4338 into the batch 2026-11-30 09:45:02 +01:00
David Mann b15c904318 Merge #4337 into the batch 2026-11-30 09:45:02 +01:00
David Mann 0ef4e09a9b Merge #4383 into the batch 2026-11-30 09:45:02 +01:00
David Mann 6ffc396957 Merge pull request #4364 from davidmann4/pin/egui-window-move
Pin egui at storytold/egui#71's merge commit 07c20531 (photocraft#18000)
2026-11-30 09:31:33 +01:00
autocraft-bot[bot] 64383b5906 Default branch is red: test menu::steady_pass::a_row_announces_the_letter_it_has_among_all_its_siblings, crates/ui-widgets/tests/it/menu/steady_pass.rs:26, test validate::tests::allows_windows_single_instance_socket_live_and_stale_and_r (#4425)
Co-authored-by: autocraft-bot[bot] <354215646+autocraft-bot[bot]@users.noreply.github.com>
2026-11-30 03:06:42 -05:00
BFlat 801e44365c Merge pull request #4409 from dotCooCoo/fix/wheel-gesture-claim-followups
ui: only the current gesture's recipients, during a pass, can mark a wheel gesture modal
2026-11-30 14:44:37 +07:00
BFlat 3b15c49189 Merge pull request #4414 from dotCooCoo/fix/mesh-ops-shared-submesh-triangles
craft-mesh-ops: mesh queries take a triangle once when two submeshes list it
2026-11-30 14:44:31 +07:00
BFlat d5a421a76a Merge pull request #4406 from dotCooCoo/fix/raster3d-crossing-tie
raster3d: a clipped edge crosses at the same corner in both directions when its distances tie
2026-11-30 14:44:26 +07:00
bflatastic 07b34eea1e Merge remote-tracking branch 'origin/main' into res-4414
# Conflicts:
#	crates/mesh-ops/src/mesh.rs
2026-11-30 14:20:05 +07:00
bflatastic 10bc5c49b3 Merge remote-tracking branch 'origin/main' into res-4406
# Conflicts:
#	crates/raster3d/src/raster.rs
2026-11-30 14:19:41 +07:00
BFlat aa82ca199c Merge pull request #4349 from dotCooCoo/fix/gpu-device-loss-followup
GPU: reads, polls and uploads report device loss from a destroyed shared device
2026-11-30 14:19:23 +07:00
BFlat 9a3c1c1b79 Merge pull request #4393 from dotCooCoo/fix/save-for-web-shift-runtime
Save for Web: the Color Table shows Shift or Unshift by the selected colors' web shift, and Unshift sends only web-shifted colors
2026-11-30 14:19:16 +07:00
BFlat 957ddb513c Merge pull request #4392 from dotCooCoo/fix/mesh-ops-gbuffer-triangle-once
mesh-ops: the UV G-buffer rasterizes a triangle once when two submeshes list it
2026-11-30 14:19:08 +07:00
BFlat 14f4e46706 Merge pull request #4398 from dotCooCoo/fix/mesh-ops-uv-tile-border
craft-mesh-ops: material UV maps split vertices on a tile border
2026-11-30 14:19:00 +07:00
BFlat 510c21408c Merge pull request #4415 from dotCooCoo/fix/mesh-ops-tangent-scale
craft-mesh-ops: per-corner tangents keep their direction when the UV gradient is huge
2026-11-30 14:18:53 +07:00
BFlat 99c4c7b5c4 Merge pull request #4411 from dotCooCoo/fix/raster3d-projection-precision
raster3d: shared corners project to the same screen point on the f32 and f64 paths
2026-11-30 14:18:46 +07:00
BFlat 2076fa3251 Merge pull request #4402 from dotCooCoo/fix/raster3d-fallback-test-counter
raster3d: count fallback coverage tests per render instead of in a process-wide static
2026-11-30 14:18:38 +07:00
BFlat a974f956ff Merge pull request #4400 from dotCooCoo/fix/silhouette-space-glyph-owner
silhouette-studio: a path after a text's trailing space is not read as a letter
2026-11-30 14:18:29 +07:00
BFlat 3ee37806d8 Merge pull request #4417 from dotCooCoo/fix/silhouette-writer-docs
silhouette-studio: writer module docs describe the format only
2026-11-30 14:18:21 +07:00
BFlat 815ddb5d47 Merge pull request #4399 from dotCooCoo/fix/silhouette-close-continue
silhouette-studio: segments after a close start a new contour instead of being dropped
2026-11-30 14:18:13 +07:00
BFlat eff5b9a412 Merge pull request #4407 from dotCooCoo/fix/image-codecs-tests-without-tiff
image-codecs: tests pass with the tiff feature off
2026-11-30 14:18:06 +07:00
dotCooCoo 445a88c428 ui-contract: a handed-on End share and a field's inner scroll owner mark the wheel gesture
The End share of a gesture handed to another taker within the gap counts as a
share of the gesture that goes on, so a value control's modal mark on it
reaches the rest of that gesture. The End of a gesture that closed still
stays off the gesture that begins in the same pass.

When a scroll owner inside a focused field takes the field's vertical share,
that scroll owner marks the gesture in the field's place, and the field no
longer marks a gesture whose shares it did not receive. A motionless End or
Cancel the field receives keeps the stand-in. The stand-in clears when the
scroll owner stops registering or a fresh gesture opens, and a momentum run
of the same swipe keeps it.

The handover case moves from the ui-canvas modal_wheel test into the
ui-contract wheel tests, which cover both cases.
2026-11-29 22:59:00 -08:00
dotCooCoo 8cf011b394 craft-mesh-ops: drop two duplicate-listing tests that cannot fail
uv_seam_edges_and_tiles_take_a_twice_listed_triangle_once and
map_material_uvs_with_takes_a_twice_listed_triangle_once pass with the
double visit put back, because a second visit leaves those outputs
unchanged. listed_triangles_give_each_triangle_once_in_listing_order and
wire_edges_count_a_twice_listed_triangle_once still fail without the
fix, and both cover the overflowing range.
2026-11-29 21:51:57 -08:00
dotCooCoo c1900c2ffa silhouette-studio: writer module docs describe the format only
The module docs of the .studio3 writer described the application build and steps used to work out and check the format. They now state what the writer writes and which section it leaves out.
2026-11-29 21:48:41 -08:00
dotCooCoo 5b434c9f14 craft-mesh-ops: per-corner tangents keep their direction when the UV gradient is huge
The per-corner tangent fallback normalized each face's UV gradient with
try_normalize, which squares the components. A finite gradient above
about 1e154 (large positions over a nearly degenerate UV triangle)
overflowed f64 there, so the face tangent became +X and the gradient
dropped out of the angle-weighted average at shared corners.

Both normalizations now divide by the largest component first.
2026-11-29 21:45:37 -08:00
dotCooCoo dac426addb GPU: a fault recorded by a second-pass map error probe fails the reads still waiting
When a map error first appeared on poll_reads' second pass and its
device-loss probe recorded a validation error, the call returned the map
error and left the other reads pending. A third pass now runs only when
a polling fault is recorded, and fails those reads in the same call.
The salvage path also reads the non-out-of-memory error flag again after
it sees a loss, before it copies mapped bytes.

docs/gpu-backends.md states when a mapped read returns its bytes after
the call detects a loss.
2026-11-29 21:42:31 -08:00
dotCooCoo 20adee340d craft-mesh-ops: mesh queries take a triangle once when two submeshes list it
wire_edges, uv_seam_edges, uv_tiles and map_material_uvs_with walked
triangles_of, which visits a triangle once per submesh listing. In
wire_edges a triangle listed twice counted twice toward an edge, so a
polygon diagonal that a UV seam left on one triangle was hidden. In the
other three the extra visits only repeated work, which grew with the
number of listings.

Mesh::listed_triangles gives each of a material's triangles once, at its
first listing, and keeps listing order; its work grows with the number
of submeshes and distinct triangles. The four queries use it.
triangles_of still visits once per listing, and both now saturate
start + count and clamp to the mesh's triangles, so a range whose end
overflows u32 no longer panics in a debug build.
2026-11-29 21:42:03 -08:00
dotCooCoo 3b879c8836 silhouette-studio: a path after a trailing tab or line break is not read as a letter
A tab, line feed or carriage return has a glyph record but no outline, like a
space, so its record no longer claims the path saved after it. Other whitespace
characters, such as U+1680 OGHAM SPACE MARK, can have outlines and keep them.
2026-11-29 21:38:33 -08:00
dotCooCoo 0fac2ef224 Merge main into fix/raster3d-fallback-test-counter 2026-11-29 21:28:51 -08:00
dotCooCoo c8beb6de25 raster3d: project corners shared with the f64 path the same way as the f32 path
A triangle with a corner whose 1/w overflows f32 is projected in f64, while
its neighbors are projected from f32 clip coordinates. A corner on the edge
they share landed on screen points about 5e-6 px apart, so pixel centers in
between were covered twice or not at all.

The f64 projection now projects each corner that the f32 projection can
handle exactly as the f32 projection does. Only corners whose 1/w overflows,
or that were clipped in f64, keep the f64 division.
2026-11-29 21:20:05 -08:00
dotCooCoo 8088370948 GPU: a map error collects reads that mapped during its probe before failing the rest on device loss
poll_reads skipped the rescan after a map error when the callback counter
had not changed since the scan. A callback stores its result before it
increments the counter, so a read that mapped during the scan was skipped
and then failed with DeviceLost. The counter is removed, and poll_reads
always collects mapped reads after a map error probe unless an error
disqualifies them.
2026-11-29 21:19:42 -08:00
dotCooCoo 8cb2664252 ui: only the current gesture's recipients, during a pass, can mark a wheel gesture modal
A value control's synthetic End no longer makes its id a recipient of the
new gesture, so marking it modal while handling that End leaves the new
gesture unmarked. A non-owner's mark_modal between passes no longer marks
the latched gesture.
2026-11-29 21:15:36 -08:00
dotCooCoo 6fd0800e2c image-codecs: tests pass with the tiff feature off
Two tests encoded a TIFF without checking the `tiff` feature, so
`cargo test -p craft-image-codecs` failed in a build that leaves TIFF out:
`resolution_probe::tests::agrees_with_decode_for_encoded_files` and
`fidelity::float_to_exr_and_tiff_is_clean`. Both now skip the TIFF case
when the feature is off and still check their other formats.
2026-11-29 21:12:12 -08:00
dotCooCoo 166d470acf raster3d: a clipped edge crosses at the same corner in both directions when its distances tie
When both corners of an edge lie equally far from a clip plane, crossing_f64 interpolated from whichever corner came first, so the two triangles sharing the edge could get crossings that differ in the last bit and leave a crack between them. A tie now starts from the corner that sorts first by its coordinates and weights.
2026-11-29 21:04:33 -08:00
Whatever Industries aa7e668ec6 media: expose MXF package identity and timing for FilmCraft component media (#3776)
Expose MXF package identity and material timing for component media. Keep readable descriptor fallback while withholding ambiguous identity, and preserve earlier project data through schema 21.
2026-11-29 23:00:06 -06:00
BFlat 5190e08ab8 Merge pull request #2985 from dotCooCoo/feat/craft-raster3d-parallel
craft-raster3d: rayon is optional behind a parallel feature
2026-11-30 11:30:06 +07:00
BFlat 680e58d3a1 Merge pull request #3463 from dotCooCoo/fix/footer-bar-wraps
ui-panels: a footer bar too narrow for its buttons or actions continues them on a new line inside it
2026-11-30 11:30:01 +07:00
dotCooCoo f3dd5d52e9 raster3d: count fallback coverage tests per render, not in a static
The work-limit test for the search under discarded pixels read a
process-wide counter that the shipped fallback path added to in test
builds, so any other test that renders discarded pixels in parallel
could change its count. try_render now calls a private render that
takes the counter as a test-only argument, and the test passes its own.
2026-11-29 20:21:06 -08:00