Show camera profiles in every view and remember proof and DCP settings.
A profile chosen for a raw only changed Develop and exports, so the grid, Compare and preset previews could disagree with the file. They now grade camera-native samples, while the proof profile persists with a rendering intent and DCP matrices can be reused per camera body. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
} from '../lib/edits';
|
||||
import { subscribeClipPreview } from '../lib/clipPreview';
|
||||
import { get16BitSource, getBitmap, getDenoisedBitmap } from '../lib/images';
|
||||
import { rebuildProofCube, restoreProofProfile } from '../lib/softProof';
|
||||
import type { Preview16 } from '../lib/preview16';
|
||||
import { useMediaQuery } from '../lib/useMediaQuery';
|
||||
import { usePersistentState } from '../lib/usePersistentState';
|
||||
@@ -627,6 +628,25 @@ export default function Develop({
|
||||
return () => cancelAnimationFrame(raf);
|
||||
}, [bitmap, drawPreview]);
|
||||
|
||||
// The printer profile lives outside the edit record, so restoring it and
|
||||
// following an intent change are handled here rather than by the proof panel.
|
||||
useEffect(() => {
|
||||
let alive = true;
|
||||
void restoreProofProfile(edits.proof.intent).then((cube) => {
|
||||
if (alive && cube) setProofProfile(cube.name);
|
||||
});
|
||||
return () => {
|
||||
alive = false;
|
||||
};
|
||||
// Restore once; intent changes are picked up by the effect below.
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
const cube = rebuildProofCube(edits.proof.intent);
|
||||
if (cube) setProofProfile(cube.name);
|
||||
}, [edits.proof.intent]);
|
||||
|
||||
/* ------------------------------------------------------------ zoom & pan */
|
||||
|
||||
const applyZoom = useCallback((rawPct: number | 'fit', point?: { x: number; y: number }) => {
|
||||
|
||||
Reference in New Issue
Block a user