Skip to content

Commit

Permalink
BRAYNS-646 Fix OBJ parser. (#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien4193 authored Jun 20, 2024
1 parent 7327eb7 commit cd88e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brayns/io/loaders/mesh/parsers/ObjMeshParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ class IndicesParser
static void _parseIndex(std::string_view &data, std::vector<uint32_t> &indices, size_t elementCount)
{
auto token = StringExtractor::extractUntil(data, '/');
StringExtractor::extract(data, 1);
if (token.empty())
{
return;
}
StringExtractor::extract(data, 1);
auto index = Parser::parseString<uint32_t>(token);
if (index < 1 || index > elementCount)
{
Expand Down

0 comments on commit cd88e61

Please sign in to comment.