Alembic: prevent a couple of unnecessary multiplications

This commit is contained in:
Sybren A. Stüvel
2017-02-15 15:22:49 +01:00
parent e0bf97d8b4
commit 76ca6ed26e

View File

@@ -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);