updated openfbx - fixed parsing some files
This commit is contained in:
parent
155a52809d
commit
b3c264e4f4
1 changed files with 8 additions and 0 deletions
8
external/openfbx/ofbx.cpp
vendored
8
external/openfbx/ofbx.cpp
vendored
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue