From af9596674db63571359f163bc72125667538ad8b Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Tue, 19 Sep 2017 00:31:41 +0200 Subject: [PATCH] FBX: add missing inversion of postrotation matrix for fbx. --- code/FBXConverter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/FBXConverter.cpp b/code/FBXConverter.cpp index f53ae02..8d85bb8 100644 --- a/code/FBXConverter.cpp +++ b/code/FBXConverter.cpp @@ -1065,6 +1065,10 @@ void Converter::GenerateTransformationNodeChain( const Model& model, continue; } + if ( comp == TransformationComp_PostRotation ) { + chain[ i ] = chain[ i ].Inverse(); + } + aiNode* nd = new aiNode(); output_nodes.push_back( nd ); -- 2.7.4