fix: erase old footprint in scale guide

This commit is contained in:
134 2026-07-05 14:23:41 +08:00
parent 28080924f8
commit c0f376c4cf

View File

@ -3188,6 +3188,18 @@ async function buildScaleAdjustVisualLayoutGuideBuffer(params: {
if (structureLockAppliedRef) {
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);
if (structureLockedComposite.compositeClip) {
compositeClipComposites.push(structureLockedComposite.compositeClip);
@ -5029,7 +5041,7 @@ export async function POST(request: NextRequest) {
scaleAdjustPromptStrategy: isScaleAdjustOperation
? scaleAdjustPatchReference
? useScaleAdjustFullFrameStructurePatch
? "full-frame-source-locked-target-guide-v8-one-shot"
? "full-frame-source-locked-target-guide-v9-erased-old-footprint-one-shot"
: scaleAdjustPatchReference.structureLockedDraft
? "ai-patch-workspace-structure-locked-draft-v87-subject-alpha-clipped-one-shot"
: "ai-patch-workspace-draft-v75-soft-wipe-erase-ghost-one-shot"