Merge branch 'patch-1' of https://github.com/CoolerExtreme/tinyobjloader into CoolerExtreme-patch-1
Conflicts: tiny_obj_loader.cc
This commit is contained in:
@@ -80,11 +80,10 @@ static inline int fixIndex(int idx, int n) {
|
||||
|
||||
static inline std::string parseString(const char *&token) {
|
||||
std::string s;
|
||||
int b = strspn(token, " \t");
|
||||
token += strspn(token, " \t");
|
||||
int e = strcspn(token, " \t\r");
|
||||
s = std::string(&token[b], &token[e]);
|
||||
|
||||
token += (e - b);
|
||||
s = std::string(token, &token[e]);
|
||||
token += e;
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user