Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-01-02 16:42:13 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-01-02 16:42:13 +0300
commit08846e0aab9a8e870e1c2d6cb9a7a0fa147dbb23 (patch)
tree4b285dd1c52e755c40ef28feabfc592c99d279bd /io_scene_x
parente74212473cd0fdf9fcf0f50a78a7bf8731d7f4b5 (diff)
Fix T43095: FBX import: refactor mesh 'layers' handling.
As usual with FBX, 'official' doc of SDK says one thing, actual FBX files produced by 'official' apps say something else. This time, it’s about mapping types - looks like it is actually 'valid' to have layer arrays shorter than actual number of relevant geometry elements (verts, edges, etc.). Don't know how the SDK handles those case, for now we simply stop filling blen's data layers once we have reached the end of fbx data layer's array. Since I was messing with this code, I also refactored it a bit to make it more generic. Also removed some optimization (like when stride is 1), we loose a few percents of speed, but nothing critical, and code is much cleaner and generic now. Only had to keep one exception - seems common to have Poly data with 'IndexToDirect' mapping without any mapping data - ***sigh***!!!
Diffstat (limited to 'io_scene_x')
0 files changed, 0 insertions, 0 deletions