查看图位图片:未出完的候选如实回报状态,同花色候选可跨图位查看,助手查看不限于委托组

This commit is contained in:
WuYongJie 2026-11-30 00:42:54 +08:00
parent fcfda09aad
commit eff36efe1b
2 changed files with 10 additions and 3 deletions

View File

@ -1335,7 +1335,9 @@ export async function openProductionOperations(host,{target=host.productionGoal,
const grouped=targets.size>1;
const groupTargets=[...targets.values()];
const groupCall=(name,{slotId:reference=slot.id,outputId:destination=outputId,...args},activeSignal)=>{
const target=targets.get(JSON.stringify([destination,reference]));
// 查看不改动任何内容,可看任一图位;裁切和采用只作用于本次委托的图位组。
const target=targets.get(JSON.stringify([destination,reference]))
??(name==='read_slot_images'?{outputId:destination,variantId,slotId:reference}:undefined);
if(!target)throw Error('目标图位不在本次委托的图位组内');
if(destination===outputId){
if(name==='adopt_production_image'&&canvasReady)return {accepted:false,reason:'canvas_inactive',...target};

View File

@ -2173,8 +2173,13 @@ impl Backend {
let mut candidate_original = None;
let mut candidate_file = None;
if let Some((candidate, record)) = candidate_id.zip(candidate_record) {
if !candidate_available(&record) || record["binding"]["slotId"] != slot || record["binding"]["variantId"] != variant_id {
return Err("候选图未就绪或不属于该图位".into());
// 候选还没出完或已退役时如实回报状态;同花色其他图位的候选可放进本图位查看,便于复用和裁切。
if !candidate_available(&record) {
return Ok(json!({"candidateId":candidate,"candidateReady":false,"phase":record["phase"],
"retired":!record["retirement"].is_null(),"candidateSlotId":record["binding"]["slotId"]}));
}
if record["binding"]["variantId"] != variant_id {
return Err("候选图属于其他花色,不能放进本图位".into());
}
let inspect_ground = is_production_review && target["groundContactDetail"] == true;
let inspect_edges = is_production_review && target["sceneEdgeDetails"] == true;