diff --git a/app/api/canvas/local-edit/route.ts b/app/api/canvas/local-edit/route.ts index e6e3488e0..e4c06ba9d 100644 --- a/app/api/canvas/local-edit/route.ts +++ b/app/api/canvas/local-edit/route.ts @@ -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"