mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-02 17:45:07 -05:00
fix(ui): always write seamless metadata
Ensure images without seamless enabled correctly reset the setting when all parameters are recalled
This commit is contained in:
@@ -23,6 +23,12 @@ export const addSeamless = (
|
||||
): Invocation<'seamless'> | null => {
|
||||
const { seamlessXAxis: seamless_x, seamlessYAxis: seamless_y } = state.params;
|
||||
|
||||
// Always write seamless metadata to ensure recalling all parameters will reset the seamless settings
|
||||
g.upsertMetadata({
|
||||
seamless_x,
|
||||
seamless_y,
|
||||
});
|
||||
|
||||
if (!seamless_x && !seamless_y) {
|
||||
return null;
|
||||
}
|
||||
@@ -34,11 +40,6 @@ export const addSeamless = (
|
||||
seamless_y,
|
||||
});
|
||||
|
||||
g.upsertMetadata({
|
||||
seamless_x: seamless_x || undefined,
|
||||
seamless_y: seamless_y || undefined,
|
||||
});
|
||||
|
||||
// Seamless slots into the graph between the model loader and the denoise node
|
||||
g.deleteEdgesFrom(modelLoader, ['unet']);
|
||||
g.deleteEdgesFrom(modelLoader, ['vae']);
|
||||
|
||||
Reference in New Issue
Block a user