Skip to content

Commit

Permalink
Fix arguments handling (mmp#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
soma-arc authored and mmp committed May 7, 2018
1 parent a2dc0c2 commit 924ad92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/cyhair2pbrt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ bool CyHair::ToCubicBezierCurves(std::vector<float> *vertices,
#include <vector>

int main(int argc, char *argv[]) {
if (argc <= 3 || strcmp(argv[1], "--help") == 0 ||
if (argc <= 2 || strcmp(argv[1], "--help") == 0 ||
strcmp(argv[1], "-h") == 0) {
fprintf(stderr,
"usage: cyhair2pbrt [CyHair filename] [pbrt output filename] "
Expand All @@ -425,7 +425,7 @@ int main(int argc, char *argv[]) {
}

if (argc > 4) {
user_thickness = atoi(argv[4]);
user_thickness = atof(argv[4]);
}

cyhair::CyHair hair;
Expand Down

0 comments on commit 924ad92

Please sign in to comment.