fix: avoid old crop reference for scale adjust
This commit is contained in:
parent
2ad8bc0073
commit
22b007c2d9
@ -1665,15 +1665,7 @@ export async function POST(request: NextRequest) {
|
||||
annotatedFilename,
|
||||
toArrayBuffer(annotatedBuffer)
|
||||
);
|
||||
const scaleAdjustCropReferences =
|
||||
isScaleAdjustOperation
|
||||
? await createScaleAdjustCropReferences({
|
||||
regions,
|
||||
sourceBuffer,
|
||||
sourceHeight,
|
||||
sourceWidth,
|
||||
})
|
||||
: [];
|
||||
const scaleAdjustCropReferences: ScaleAdjustCropReference[] = [];
|
||||
const prompt = isScaleAdjustOperation
|
||||
? useScaleAdjustCoordinateGuide
|
||||
? buildScaleAdjustCoordinatePrompt(
|
||||
@ -1791,8 +1783,8 @@ export async function POST(request: NextRequest) {
|
||||
.length,
|
||||
scaleAdjustPromptStrategy: isScaleAdjustOperation
|
||||
? useScaleAdjustCoordinateGuide
|
||||
? "same-name-locked-source-strong-erasure-semantic-target-map-v37-one-shot"
|
||||
: "locked-plate-strong-erasure-semantic-target-map-v14"
|
||||
? "same-name-locked-source-semantic-target-map-no-old-crop-v38-one-shot"
|
||||
: "locked-plate-semantic-target-map-no-old-crop-v15"
|
||||
: undefined,
|
||||
scaleAdjustPostCompositeApplied: false,
|
||||
scaleAdjustUsesFullFrameOutput: isScaleAdjustOperation,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user