Skip to content
Snippets Groups Projects

remove check for current and prev coord matching if piped input

Closed Taylor Hanayik requested to merge pipefix into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -318,7 +318,7 @@ int main(int argc,char *argv[])
while ( (use_stdin && (cin >> imgcoord(1) >> imgcoord(2) >> imgcoord(3))) || ((!use_stdin) && (matfile >> imgcoord(1) >> imgcoord(2) >> imgcoord(3))) ) {
if (use_stdin) {
// this is in case the pipe continues to input a stream of zeros
if (oldimg == imgcoord) return 0;
//if (oldimg == imgcoord) return 0;
oldimg = imgcoord;
}
Loading