From deb8d97ebe509db758e8ff37e0a1e33628a0a2c0 Mon Sep 17 00:00:00 2001 From: Ionite Date: Thu, 7 Dec 2023 00:46:18 -0500 Subject: [PATCH] Update PrimarySize when rescaling Primary --- .../ViewModels/Inference/SamplerCardViewModel.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/StabilityMatrix.Avalonia/ViewModels/Inference/SamplerCardViewModel.cs b/StabilityMatrix.Avalonia/ViewModels/Inference/SamplerCardViewModel.cs index 67f2b14f..0bb62eb4 100644 --- a/StabilityMatrix.Avalonia/ViewModels/Inference/SamplerCardViewModel.cs +++ b/StabilityMatrix.Avalonia/ViewModels/Inference/SamplerCardViewModel.cs @@ -16,6 +16,8 @@ using StabilityMatrix.Core.Helper; using StabilityMatrix.Core.Models; using StabilityMatrix.Core.Models.Api.Comfy; using StabilityMatrix.Core.Models.Api.Comfy.Nodes; +using Size = System.Drawing.Size; + #pragma warning disable CS0657 // Not a valid attribute location for this declaration namespace StabilityMatrix.Avalonia.ViewModels.Inference; @@ -109,6 +111,8 @@ public partial class SamplerCardViewModel : LoadableViewModelBase, IParametersLo Width, Height ); + + e.Builder.Connections.PrimarySize = new Size(Width, Height); } // Provide temp values