diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-09-04 13:26:24 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-09-04 13:37:56 +0300 |
commit | cc2b114a21bbd311bd5f497241403aab80fd79a1 (patch) | |
tree | e82e6cd6d1bdd38b118d71a8c089304580dd250e /source/blender/io/collada/TransformWriter.cpp | |
parent | 3e3e42cbcb899c879936ec596759a9c7e533dd5f (diff) |
Cleanup: Clang-Tidy readability-static-accessed-through-instance fixes
No functional changes.
Diffstat (limited to 'source/blender/io/collada/TransformWriter.cpp')
-rw-r--r-- | source/blender/io/collada/TransformWriter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/io/collada/TransformWriter.cpp b/source/blender/io/collada/TransformWriter.cpp index b7455837379..0311f22fe11 100644 --- a/source/blender/io/collada/TransformWriter.cpp +++ b/source/blender/io/collada/TransformWriter.cpp @@ -47,9 +47,7 @@ void TransformWriter::add_joint_transform(COLLADASW::Node &node, } double dmat[4][4]; - UnitConverter *converter = new UnitConverter(); - converter->mat4_to_dae_double(dmat, local); - delete converter; + UnitConverter::mat4_to_dae_double(dmat, local); if (export_settings.get_object_transformation_type() == BC_TRANSFORMATION_TYPE_MATRIX) { node.addMatrix("transform", dmat); @@ -81,9 +79,8 @@ void TransformWriter::add_node_transform_ob(COLLADASW::Node &node, switch (export_settings.get_object_transformation_type()) { case BC_TRANSFORMATION_TYPE_MATRIX: { - UnitConverter converter; double d_obmat[4][4]; - converter.mat4_to_dae_double(d_obmat, f_obmat); + UnitConverter::mat4_to_dae_double(d_obmat, f_obmat); if (limit_precision) { BCMatrix::sanitize(d_obmat, LIMITTED_PRECISION); |