Comments (5)
Hi, I can't reproduce the issue. I see skipLine
correctly handling comments in \r\n
mode. Do you have an fbx file I can try to reproduce this?
from openfbx.
I amon the phone atm so can't give a sample right now, but basically, in here:
if (cursor->current < cursor->end) ++cursor->current;
While the 'next line' token is detected correctly on the loop before the linked line, which advances the cursor til it hit the 'next line' token, the linked line then, disregard whether it is a '\n' or '\r\n', and instead just advances 1 character. This makes the 'skipLine()' to fail to skip the actual line.
from openfbx.
what happens in case of ;comment\r\n
is:
- cursor goes up to
\r
- isEndLine returns false for
\r
because it fails on*(cursor.current + 1) != '\n'
(emphasis on !=) - cursor moves further to
\n
- isEndLine returns true now
- cursor is move further by one character
if (cursor->current < cursor->end) ++cursor->current;
so the whole line is correctly skipped
I must be misunderstanding something.
from openfbx.
Oh. That's my mistake then. Apologies for wasting your time here. I did not notice that is a 'not equal' sign instead of a 'equal' sign.
from openfbx.
No problem.
from openfbx.
Related Issues (20)
- Crash in parseObjects if FBX has no geometry HOT 1
- FBX用QT5显示 HOT 1
- How to delete object from ofbx::load HOT 1
- FrontAxis wrong ? HOT 13
- Where can I found armature value ? (Question) HOT 1
- Is it possible to get provide of FBX ? HOT 1
- How to get animated vertex positions of a mesh? HOT 1
- Request for animated example HOT 1
- how to use blendshapes HOT 3
- Typo in ShapeImpl::postprocess making normals incorrectly parsed for blend shapes HOT 1
- Some meshes are not correctly loaded HOT 1
- It doesn't build on Macos HOT 2
- can't free the memory of the scene HOT 1
- compiler warnings
- Add (proper) support for "ByPolygon" mapping for vertex data HOT 1
- Token parsing failure with "ascii" format with embedded texture data due to a ',' HOT 1
- Possible Nullptr dereference in `parseGeometryMaterials()` due to missing null checks HOT 1
- Missing failure handling for `parseArrayRaw(...)` when parsing matrix in `parsePose(...)`? HOT 1
- The library does not build under a C++11-compliant compiler. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openfbx.