[Bf-blender-cvs] [5265d50] alembic_basic_io: Avoid double matrix multiplication.

Kévin Dietrich noreply at git.blender.org
Tue May 31 01:51:09 CEST 2016


Commit: 5265d5068771f0ec6dcd0b6587a286598bec3058
Author: Kévin Dietrich
Date:   Mon May 30 18:46:42 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB5265d5068771f0ec6dcd0b6587a286598bec3058

Avoid double matrix multiplication.

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

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

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

diff --git a/source/blender/alembic/intern/abc_util.cc b/source/blender/alembic/intern/abc_util.cc
index c64ff93..00c401b 100644
--- a/source/blender/alembic/intern/abc_util.cc
+++ b/source/blender/alembic/intern/abc_util.cc
@@ -211,20 +211,6 @@ static void get_matrix(const Alembic::AbcGeom::ISampleSelector &sample_sel,
     Alembic::AbcGeom::XformSample xs;
 	xform_schema.get(xs, sample_sel);
 	m = xs.getMatrix();
-
-	if (!xs.getInheritsXforms()) {
-		return;
-	}
-
-	Alembic::AbcGeom::IObject obj = leaf.getParent();
-
-	if (Alembic::AbcGeom::IXform::matches(obj.getHeader())) {
-		Alembic::AbcGeom::IXform parent = Alembic::AbcGeom::IXform(obj, Alembic::AbcGeom::kWrapExisting);
-		xform_schema = parent.getSchema();
-		xform_schema.get(xs, sample_sel);
-
-		m = m * xs.getMatrix();
-	}
 }
 
 void create_input_transform(const Alembic::AbcGeom::ISampleSelector &sample_sel,




More information about the Bf-blender-cvs mailing list