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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2017-02-15 17:22:49 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2017-04-06 17:04:31 +0300
commit76ca6ed26e34017749673834ba89f23681afcc34 (patch)
tree17dd936ecb6a6c41e8ecaa6a6474ecf206eacd17 /source/blender/alembic
parente0bf97d8b43cdff10b562ed23c883f78b52818bd (diff)
Alembic: prevent a couple of unnecessary multiplications
Diffstat (limited to 'source/blender/alembic')
-rw-r--r--source/blender/alembic/intern/abc_transform.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/alembic/intern/abc_transform.cc b/source/blender/alembic/intern/abc_transform.cc
index 799cf636668..078e999e2ba 100644
--- a/source/blender/alembic/intern/abc_transform.cc
+++ b/source/blender/alembic/intern/abc_transform.cc
@@ -102,8 +102,8 @@ void AbcTransformWriter::do_write()
* Blender Object. */
float scale_mat[4][4];
scale_m4_fl(scale_mat, m_settings.global_scale);
+ scale_mat[3][3] = m_settings.global_scale; /* also scale translation */
mul_m4_m4m4(yup_mat, yup_mat, scale_mat);
- mul_v3_fl(yup_mat[3], m_settings.global_scale);
}
m_matrix = convert_matrix(yup_mat);