Browse Source

Fix output type ordering

pull/333/head
Ionite 1 year ago
parent
commit
35bd76ac5b
No known key found for this signature in database
  1. 6
      StabilityMatrix.Core/Models/Api/Comfy/Nodes/ComfyTypedNodeBase.cs
  2. 2
      StabilityMatrix.Core/Models/Api/Comfy/Nodes/NamedComfyNode.cs

6
StabilityMatrix.Core/Models/Api/Comfy/Nodes/ComfyTypedNodeBase.cs

@ -68,7 +68,7 @@ public abstract record ComfyTypedNodeBase<TOutput1, TOutput2> : ComfyTypedNodeBa
public TOutput1 Output1 => new() { Data = new object[] { Name, 0 } }; public TOutput1 Output1 => new() { Data = new object[] { Name, 0 } };
[JsonIgnore] [JsonIgnore]
public TOutput1 Output2 => new() { Data = new object[] { Name, 1 } }; public TOutput2 Output2 => new() { Data = new object[] { Name, 1 } };
public static implicit operator NamedComfyNode<TOutput1, TOutput2>( public static implicit operator NamedComfyNode<TOutput1, TOutput2>(
ComfyTypedNodeBase<TOutput1, TOutput2> node ComfyTypedNodeBase<TOutput1, TOutput2> node
@ -84,10 +84,10 @@ public abstract record ComfyTypedNodeBase<TOutput1, TOutput2, TOutput3> : ComfyT
public TOutput1 Output1 => new() { Data = new object[] { Name, 0 } }; public TOutput1 Output1 => new() { Data = new object[] { Name, 0 } };
[JsonIgnore] [JsonIgnore]
public TOutput1 Output2 => new() { Data = new object[] { Name, 1 } }; public TOutput2 Output2 => new() { Data = new object[] { Name, 1 } };
[JsonIgnore] [JsonIgnore]
public TOutput1 Output3 => new() { Data = new object[] { Name, 2 } }; public TOutput3 Output3 => new() { Data = new object[] { Name, 2 } };
public static implicit operator NamedComfyNode<TOutput1, TOutput2, TOutput3>( public static implicit operator NamedComfyNode<TOutput1, TOutput2, TOutput3>(
ComfyTypedNodeBase<TOutput1, TOutput2, TOutput3> node ComfyTypedNodeBase<TOutput1, TOutput2, TOutput3> node

2
StabilityMatrix.Core/Models/Api/Comfy/Nodes/NamedComfyNode.cs

@ -51,5 +51,5 @@ public record NamedComfyNode<TOutput1, TOutput2, TOutput3>(string Name) : NamedC
public TOutput2 Output2 => new() { Data = GetOutput(1) }; public TOutput2 Output2 => new() { Data = GetOutput(1) };
public TOutput2 Output3 => new() { Data = GetOutput(2) }; public TOutput3 Output3 => new() { Data = GetOutput(2) };
} }

Loading…
Cancel
Save