Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27bd852

Browse files
committed
correspond to 3 digit smoothing group index
1 parent 5a36f8d commit 27bd852

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tiny_obj_loader.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2522,10 +2522,9 @@ bool LoadObj(attrib_t *attrib, std::vector<shape_t> *shapes,
25222522
continue;
25232523
}
25242524

2525-
if (strlen(token) >= 3) {
2526-
if (token[0] == 'o' && token[1] == 'f' && token[2] == 'f') {
2527-
current_smoothing_id = 0;
2528-
}
2525+
if (strlen(token) >= 3 && token[0] == 'o' && token[1] == 'f' &&
2526+
token[2] == 'f') {
2527+
current_smoothing_id = 0;
25292528
} else {
25302529
// assume number
25312530
int smGroupId = parseInt(&token);

0 commit comments

Comments
 (0)