diff options
author | Sergey Sharybin <sergey@blender.org> | 2020-11-06 16:06:52 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2020-11-06 16:06:52 +0300 |
commit | 8d5073345d7e3f66d08e2f5587c8ad8cc1d812fa (patch) | |
tree | d3708a4dd5aa0cce4c7f75123e8a5597b638d0da /source/blender/io/alembic/exporter/abc_writer_points.cc | |
parent | cee5a415185c22aadfbeeee24b887b0ca729ad5a (diff) |
Cleanup: Clang-Tidy, modernize-use-emplace
Diffstat (limited to 'source/blender/io/alembic/exporter/abc_writer_points.cc')
-rw-r--r-- | source/blender/io/alembic/exporter/abc_writer_points.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/io/alembic/exporter/abc_writer_points.cc b/source/blender/io/alembic/exporter/abc_writer_points.cc index 557f580e8aa..eb5e51b5674 100644 --- a/source/blender/io/alembic/exporter/abc_writer_points.cc +++ b/source/blender/io/alembic/exporter/abc_writer_points.cc @@ -123,8 +123,8 @@ void ABCPointsWriter::do_write(HierarchyContext &context) sub_v3_v3v3(vel, state.co, psys->particles[p].prev_state.co); /* Convert Z-up to Y-up. */ - points.push_back(Imath::V3f(pos[0], pos[2], -pos[1])); - velocities.push_back(Imath::V3f(vel[0], vel[2], -vel[1])); + points.emplace_back(pos[0], pos[2], -pos[1]); + velocities.emplace_back(vel[0], vel[2], -vel[1]); widths.push_back(psys->particles[p].size); ids.push_back(index++); } |