updated openfbx - fixed parsing some files

This commit is contained in:
Mikulas Florek 2023-09-23 12:56:47 +02:00
parent 155a52809d
commit b3c264e4f4

View file

@ -877,6 +877,14 @@ static OptionalError<Property*> readTextProperty(Cursor* cursor, Allocator& allo
prop->value.end = cursor->current;
}
else if (cursor->current < cursor->end && (*cursor->current == 'e' || *cursor->current == 'E')) {
prop->type = 'D';
// 10e-013
++cursor->current;
if (cursor->current < cursor->end && *cursor->current == '-') ++cursor->current;
while (cursor->current < cursor->end && isdigit(*cursor->current)) ++cursor->current;
prop->value.end = cursor->current;
}
return prop;
}