fix: erase old footprint in scale guide
This commit is contained in:
parent
28080924f8
commit
c0f376c4cf
@ -3188,6 +3188,18 @@ async function buildScaleAdjustVisualLayoutGuideBuffer(params: {
|
|||||||
if (structureLockAppliedRef) {
|
if (structureLockAppliedRef) {
|
||||||
structureLockAppliedRef.value = true;
|
structureLockAppliedRef.value = true;
|
||||||
}
|
}
|
||||||
|
if (structureLockedComposite.method === "rect-crop-guide" && sourceRaw) {
|
||||||
|
sourceFootprintBoxes.push({
|
||||||
|
...placement.sourceFootprintBox,
|
||||||
|
background: estimateScaleAdjustBoxBackground({
|
||||||
|
box: placement.sourceFootprintBox,
|
||||||
|
raw: sourceRaw,
|
||||||
|
width: sourceWidth,
|
||||||
|
}),
|
||||||
|
innerOpacity: 0.7,
|
||||||
|
opacity: 0.88,
|
||||||
|
});
|
||||||
|
}
|
||||||
subjectWashComposites.push(structureLockedComposite.wash);
|
subjectWashComposites.push(structureLockedComposite.wash);
|
||||||
if (structureLockedComposite.compositeClip) {
|
if (structureLockedComposite.compositeClip) {
|
||||||
compositeClipComposites.push(structureLockedComposite.compositeClip);
|
compositeClipComposites.push(structureLockedComposite.compositeClip);
|
||||||
@ -5029,7 +5041,7 @@ export async function POST(request: NextRequest) {
|
|||||||
scaleAdjustPromptStrategy: isScaleAdjustOperation
|
scaleAdjustPromptStrategy: isScaleAdjustOperation
|
||||||
? scaleAdjustPatchReference
|
? scaleAdjustPatchReference
|
||||||
? useScaleAdjustFullFrameStructurePatch
|
? useScaleAdjustFullFrameStructurePatch
|
||||||
? "full-frame-source-locked-target-guide-v8-one-shot"
|
? "full-frame-source-locked-target-guide-v9-erased-old-footprint-one-shot"
|
||||||
: scaleAdjustPatchReference.structureLockedDraft
|
: scaleAdjustPatchReference.structureLockedDraft
|
||||||
? "ai-patch-workspace-structure-locked-draft-v87-subject-alpha-clipped-one-shot"
|
? "ai-patch-workspace-structure-locked-draft-v87-subject-alpha-clipped-one-shot"
|
||||||
: "ai-patch-workspace-draft-v75-soft-wipe-erase-ghost-one-shot"
|
: "ai-patch-workspace-draft-v75-soft-wipe-erase-ghost-one-shot"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user