[Bf-blender-cvs] [8991cc5485] temp-sybren-alembic: Alembic import: prevented unnecessary vector scaling

Sybren A. Stüvel noreply at git.blender.org
Thu Mar 2 10:14:19 CET 2017


Commit: 8991cc548575346663f583575f270d96be87ff06
Author: Sybren A. Stüvel
Date:   Thu Mar 2 10:05:34 2017 +0100
Branches: temp-sybren-alembic
https://developer.blender.org/rB8991cc548575346663f583575f270d96be87ff06

Alembic import: prevented unnecessary vector scaling

===================================================================

M	source/blender/alembic/intern/abc_object.cc

===================================================================

diff --git a/source/blender/alembic/intern/abc_object.cc b/source/blender/alembic/intern/abc_object.cc
index dd4d4de3fb..ac95b341cb 100644
--- a/source/blender/alembic/intern/abc_object.cc
+++ b/source/blender/alembic/intern/abc_object.cc
@@ -308,8 +308,8 @@ void AbcObjectReader::read_matrix(float r_mat[4][4], const float time,
 		/* Only apply scaling to root objects, parenting will propagate it. */
 		float scale_mat[4][4];
 		scale_m4_fl(scale_mat, scale);
+		scale_mat[3][3] = scale; /* scale translations too */
 		mul_m4_m4m4(r_mat, r_mat, scale_mat);
-		mul_v3_fl(r_mat[3], scale);
 	}
 
 	is_constant = schema.isConstant();




More information about the Bf-blender-cvs mailing list