fix argument check for assimp cmdline tool
`assimp cmpdump` expects two files as arguments. so we need to check for at least 2 extra arguments (rather than only check for !<1 and access both)pull/689/head
parent
756cfd4f74
commit
989e8af3fb
|
@ -881,7 +881,7 @@ int Assimp_CompareDump (const char* const* params, unsigned int num)
|
||||||
}
|
}
|
||||||
|
|
||||||
// assimp cmpdump actual expected
|
// assimp cmpdump actual expected
|
||||||
if (num < 1) {
|
if (num < 2) {
|
||||||
std::cout << "assimp cmpdump: Invalid number of arguments. "
|
std::cout << "assimp cmpdump: Invalid number of arguments. "
|
||||||
"See \'assimp cmpdump --help\'\r\n" << std::endl;
|
"See \'assimp cmpdump --help\'\r\n" << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue