Browse Source

Update PrimarySize when rescaling Primary

pull/324/head
Ionite 12 months ago
parent
commit
deb8d97ebe
No known key found for this signature in database
  1. 4
      StabilityMatrix.Avalonia/ViewModels/Inference/SamplerCardViewModel.cs

4
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

Loading…
Cancel
Save