Eliminate xAIGen and LTX; AIGen is the only studio.
Drop the studio split, backup-to-xAIGen link, and LTX engine option. Show all LoRAs on AIGen and remove the Photos show/hide inputs toggle so slots stay visible. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+6
-8
@@ -232,22 +232,21 @@ export function loraStacksEqual(a?: unknown, b?: unknown) {
|
||||
))
|
||||
}
|
||||
|
||||
/** User LoRA picker only. `xaigen-*` names are visible only on xAIGen. */
|
||||
export function filterLorasForStudio(names: string[], xaigenStudio: boolean) {
|
||||
/** User LoRA picker: dedupe Comfy-relative paths; all site trees stay visible on AIGen. */
|
||||
export function filterLorasForStudio(names: string[]) {
|
||||
const seen = new Set<string>()
|
||||
const out: string[] = []
|
||||
for (const raw of names) {
|
||||
const name = String(raw || '').trim()
|
||||
if (!name || seen.has(name)) continue
|
||||
if (!xaigenStudio && isXaigenOnlyLora(name)) continue
|
||||
seen.add(name)
|
||||
out.push(name)
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
export function filterLoraStackForStudio(stack: unknown, xaigenStudio: boolean) {
|
||||
return normalizeLoraStack(stack).filter(item => xaigenStudio || !isXaigenOnlyLora(item.name))
|
||||
export function filterLoraStackForStudio(stack: unknown) {
|
||||
return normalizeLoraStack(stack)
|
||||
}
|
||||
|
||||
/** Klein / Flux.2 Klein adapters. Must not load on a Krea graph. */
|
||||
@@ -363,9 +362,8 @@ export function loraMatchesUse(name: string, use: LoraUse) {
|
||||
}
|
||||
|
||||
/** Saved stacks may contain unlabelled adapters; never carry a known wrong engine. */
|
||||
export function filterLoraStackForUse(stack: unknown, use: LoraUse, xaigen: boolean) {
|
||||
if (use === 'ltx' && !xaigen) return []
|
||||
return filterLoraStackForStudio(stack, xaigen).filter(item => {
|
||||
export function filterLoraStackForUse(stack: unknown, use: LoraUse) {
|
||||
return filterLoraStackForStudio(stack).filter(item => {
|
||||
if (isSystemGraphLora(item.name)) return false
|
||||
const folder = loraEngineFolder(item.name)
|
||||
if (folder) return folder === use
|
||||
|
||||
Reference in New Issue
Block a user