diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-06-08 16:46:54 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-06-08 16:51:49 +0300 |
commit | 249a41bc7c2dca1cf9c27afdb0939b1f76270b39 (patch) | |
tree | c7c6ade3e7b292af3fe5c1a7e5926a9fc691875c /source/blender/alembic/intern/abc_hair.cc | |
parent | ba31c4d684c1bff0955df55b0b0566f15872aed5 (diff) |
Alembic: slight clarifications
Diffstat (limited to 'source/blender/alembic/intern/abc_hair.cc')
-rw-r--r-- | source/blender/alembic/intern/abc_hair.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/alembic/intern/abc_hair.cc b/source/blender/alembic/intern/abc_hair.cc index be7ad90dc31..83a46a330fd 100644 --- a/source/blender/alembic/intern/abc_hair.cc +++ b/source/blender/alembic/intern/abc_hair.cc @@ -145,6 +145,7 @@ void AbcHairWriter::write_hair_sample(Mesh *mesh, /* underlying info for faces-only emission */ path = cache[p]; + /* Write UV and normal vectors */ if (part->from == PART_FROM_FACE && mtface) { const int num = pa->num_dmcache >= 0 ? pa->num_dmcache : pa->num; @@ -211,7 +212,7 @@ void AbcHairWriter::write_hair_sample(Mesh *mesh, int steps = path->segments + 1; hvertices.push_back(steps); - for (k = 0; k < steps; ++k) { + for (k = 0; k < steps; ++k, ++path) { float vert[3]; copy_v3_v3(vert, path->co); mul_m4_v3(inv_mat, vert); @@ -219,7 +220,6 @@ void AbcHairWriter::write_hair_sample(Mesh *mesh, /* Convert Z-up to Y-up. */ verts.push_back(Imath::V3f(vert[0], vert[2], -vert[1])); - ++path; } } } |