diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-06-19 15:31:04 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-06-19 16:30:18 +0300 |
commit | 1a448c66edf26ceb4fc4f0daad7375f0ae5f84cf (patch) | |
tree | 8bc31f56bf512f56c99a32d7179e1aac0ac761f5 /source/blender/io/alembic/intern/abc_axis_conversion.cc | |
parent | 89b7f785e64275819bd7372f6b47f1cc9225078f (diff) |
Cleanup: Alembic, move the C++ code to `blender::io::alembic` namespace
This commit only moves code into the `blender::io::alembic` namespace,
it does not move `static` functions into an anonymous namespace.
No functional changes.
Diffstat (limited to 'source/blender/io/alembic/intern/abc_axis_conversion.cc')
-rw-r--r-- | source/blender/io/alembic/intern/abc_axis_conversion.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/io/alembic/intern/abc_axis_conversion.cc b/source/blender/io/alembic/intern/abc_axis_conversion.cc index 17db5e9c99f..a74432a3540 100644 --- a/source/blender/io/alembic/intern/abc_axis_conversion.cc +++ b/source/blender/io/alembic/intern/abc_axis_conversion.cc @@ -27,6 +27,10 @@ extern "C" { #include "BLI_math_geom.h" } +namespace blender { +namespace io { +namespace alembic { + void create_swapped_rotation_matrix(float rot_x_mat[3][3], float rot_y_mat[3][3], float rot_z_mat[3][3], @@ -72,7 +76,8 @@ void create_swapped_rotation_matrix(float rot_x_mat[3][3], rot_z_mat[1][0] = -sin(rz); rot_z_mat[0][1] = sin(rz); rot_z_mat[1][1] = cos(rz); -} +} // namespace + // alembicvoidcreate_swapped_rotation_matrix(floatrot_x_mat[3][3],floatrot_y_mat[3][3],floatrot_z_mat[3][3],constfloateuler[3],AbcAxisSwapModemode) /* Convert matrix from Z=up to Y=up or vice versa. * Use yup_mat = zup_mat for in-place conversion. */ @@ -164,3 +169,7 @@ void create_transform_matrix(Object *obj, copy_m44_axis_swap(r_yup_mat, zup_mat, ABC_YUP_FROM_ZUP); } + +} // namespace alembic +} // namespace io +} // namespace blender
\ No newline at end of file |