Skip to content

Commit

Permalink
Only overwrite dead ends with output filters when parsing CBFs
Browse files Browse the repository at this point in the history
  • Loading branch information
VoidXH committed Jul 16, 2024
1 parent f1a60d3 commit d65d505
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ FilterGraphNode GetChannel(int index) { // Get an actual channel's last node
if (node.Key >= 0) {
// TODO: many points make input or output channels from channels, create them from names instead
OutputChannel outputFilter = new OutputChannel(((InputChannel)inputChannels[node.Key].root.Filter).ChannelName);
if (node.Value.Filter == null) {
if (node.Value.Filter == null && node.Value.Children.Count == 0) { // Only overwrite dead ends with outputs
node.Value.Filter = outputFilter;
} else {
node.Value.AddChild(outputFilter);
Expand Down

0 comments on commit d65d505

Please sign in to comment.