mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-28 09:19:25 +01:00
Ported onto main's #2207 composition (`compose_named`, `interpolate_object` /
`interpolate_leaf`), whose step at half amount for switches, choices, integers
and nulls stays. The continuous rules of this PR now live there:
- point curves blend as curves (both evaluated monotone cubic at every control
point of either), towards the original's curve;
- when a preset changes a choice (a string such as the profile or LUT id, or an
object's `enabled` switch), that object's `amount` fades in from 0 from half
amount up, where the preset's choice applies; below half amount the original's
choice keeps its own amount;
- white balance on another scale (Kelvin against relative) is never blended:
numbers and scale come together from the original below half amount and from
the preset from half amount up;
- HDR, left out of the JSON at its defaults, is written into the base so its
numbers blend too.
The base is the original (import) state, as `compose_named` has it, so the test
numbers are measured from it. `apply_partial` uses the same rules on its own
base, and `scale_patch` (its separate copy of the old rules) is gone. At 0 % a
preset's masks are not added, and a NaN amount changes nothing.
Replaces f36107636 and 6ef42980f of the PR (rebased onto 6b2b7e6d1).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fnx9MvXCjGmV3UZ1Xs54DG