From b3c264e4f41b2b2e6089ea31bbb2059230d625b7 Mon Sep 17 00:00:00 2001 From: Mikulas Florek Date: Sat, 23 Sep 2023 12:56:47 +0200 Subject: [PATCH] updated openfbx - fixed parsing some files --- external/openfbx/ofbx.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/external/openfbx/ofbx.cpp b/external/openfbx/ofbx.cpp index ed947c5e9..3a1e06d92 100644 --- a/external/openfbx/ofbx.cpp +++ b/external/openfbx/ofbx.cpp @@ -877,6 +877,14 @@ static OptionalError 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; }