Skip to content

Commit 0c3dc29

Browse files
committed
Fixes Desaturate Feeding back into the previous step
This was caused by not copying the input to the output and just simply assigning the value of the input to the output. Closes #252
1 parent 1b4e055 commit 0c3dc29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/edu/wpi/grip/core/operations/composite/DesaturateOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void perform(InputSocket<?>[] inputs, OutputSocket<?>[] outputs) {
5454
switch (input.channels()) {
5555
case 1:
5656
// If the input is already one channel, it's already desaturated
57-
output = input;
57+
input.copyTo(output);
5858
break;
5959

6060
case 3:

0 commit comments

Comments
 (0)