Skip to content

Commit

Permalink
Allow 0 input value
Browse files Browse the repository at this point in the history
  • Loading branch information
msg7086 committed May 29, 2020
1 parent d384490 commit b1bf6ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/minideen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,19 @@ struct MiniDeen : Filter {

int radius_tmp = -1;
in->Read("radius", radius_tmp);
if (radius_tmp > 0)
if (radius_tmp >= 0)
radius[0] = radius[1] = radius[2] = radius_tmp;

radius_tmp = -1;
in->Read("radiusY", radius[0]);
in->Read("radiusUV", radius_tmp);
if (radius_tmp > 0)
if (radius_tmp >= 0)
radius[1] = radius[2] = radius_tmp;

int threshold_tmp = -1;
in->Read("thrY", threshold[0]);
in->Read("thrUV", threshold_tmp);
if (threshold_tmp > 0)
if (threshold_tmp >= 0)
threshold[1] = threshold[2] = threshold_tmp;
}
in->Read("opt", opt);
Expand Down

0 comments on commit b1bf6ad

Please sign in to comment.