diff --git a/app/api/canvas/local-edit/route.ts b/app/api/canvas/local-edit/route.ts
index 84c395c12..2dd2b7211 100644
--- a/app/api/canvas/local-edit/route.ts
+++ b/app/api/canvas/local-edit/route.ts
@@ -997,7 +997,7 @@ function buildScaleAdjustSourceFootprintWashSvg(params: {
const top = Math.max(0, box.top - blur);
const right = Math.min(width, box.left + box.width + blur);
const bottom = Math.min(height, box.top + box.height + blur);
- return ``;
+ return ``;
})
.join("");
@@ -2058,7 +2058,7 @@ function buildScaleAdjustPatchPrompt(
const firstInputRole = targetDraftPrimary
? includeSourceReference
? "Input image 1 is the rough edited target-layout crop. It is the hard layout target: the selected furniture size and center in the final output must match this draft, but the rough wash, ghosted old footprint, placeholder shadow, blur, and patch artifacts must be cleaned."
- : "Input image 1 is the rough edited target-layout crop and the only crop base. It is the hard layout target: the selected furniture size and center in the final output must match this draft. Clean away the rough wash, ghosted old footprint, placeholder shadow, blur, and patch artifacts."
+ : "Input image 1 is the rough edited target-layout crop and the only visual reference. It is the hard layout target: the selected furniture size and center in the final output must match this draft. Clean away the rough wash, ghosted old footprint, placeholder shadow, blur, and patch artifacts."
: "Input image 1 is the exact crop from the original photo and is the locked crop base.";
const secondInputRole = targetDraftPrimary
? includeSourceReference
@@ -2120,7 +2120,7 @@ function buildScaleAdjustPatchPrompt(
targetDraftPrimary
? includeSourceReference
? "中文硬约束:输入图1是目标大小/位置草稿,必须按它的小尺寸家具布局输出;输入图2只是原始质感和背景参考,绝对不要把家具恢复成输入图2里的旧大尺寸。只输出同一裁切范围的干净局部照片,去掉草稿中的泛白、残影和拼接感。"
- : "中文硬约束:输入图1是唯一的裁切底图和目标大小/位置草稿,必须按它的小尺寸家具布局输出;后续家具识别图只看材质形状,不看旧尺寸。只输出同一裁切范围的干净局部照片,去掉草稿中的泛白、残影和拼接感。"
+ : "中文硬约束:输入图1是唯一视觉参考和目标大小/位置草稿,必须按它的小尺寸家具布局输出。不要找回旧尺寸家具。只输出同一裁切范围的干净局部照片,去掉草稿中的泛白、残影和拼接感。"
: "中文硬约束:只输出输入图1同一裁切范围的干净局部照片;输入图2是目标大小/位置草稿,必须按它的小尺寸家具布局输出,不是要保留旧尺寸。目标家具必须相对原图产生明显比例变化,非目标背景和裁切边缘要稳定自然。",
"",
"Region instructions:",
@@ -2397,11 +2397,11 @@ export async function POST(request: NextRequest) {
: null;
const shouldCreateScaleAdjustCropReferences =
isScaleAdjustOperation &&
- (useScaleAdjustPatchWorkflow ||
- useScaleAdjustVisualLayoutGuide ||
+ (!scaleAdjustPatchReference &&
+ (useScaleAdjustVisualLayoutGuide ||
!useScaleAdjustCoordinatePrompt ||
useProviderTextOnlyCoordinatePrompt ||
- (useScaleAdjustMarkedPhotoGuide && !useFalScaleAdjustCoordinatePrompt));
+ (useScaleAdjustMarkedPhotoGuide && !useFalScaleAdjustCoordinatePrompt)));
const scaleAdjustCropReferences: ScaleAdjustCropReference[] =
shouldCreateScaleAdjustCropReferences
? await createScaleAdjustCropReferences({