Skip to content

Commit

Permalink
Merge pull request #1834 from assimp/issue_1120
Browse files Browse the repository at this point in the history
closes #1120: use euler angles…
  • Loading branch information
kimkulling committed Mar 14, 2018
2 parents 58e7314 + 5cf6509 commit 9444935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/FBXConverter.cpp
Expand Up @@ -643,14 +643,14 @@ void Converter::GenerateTransformationNodeChain( const Model& model, std::vector
if ( ok && PreRotation.SquareLength() > zero_epsilon ) {
is_complex = true;

GetRotationMatrix( rot, PreRotation, chain[ TransformationComp_PreRotation ] );
GetRotationMatrix( Model::RotOrder::RotOrder_EulerXYZ, PreRotation, chain[ TransformationComp_PreRotation ] );
}

const aiVector3D& PostRotation = PropertyGet<aiVector3D>( props, "PostRotation", ok );
if ( ok && PostRotation.SquareLength() > zero_epsilon ) {
is_complex = true;

GetRotationMatrix( rot, PostRotation, chain[ TransformationComp_PostRotation ] );
GetRotationMatrix( Model::RotOrder::RotOrder_EulerXYZ, PostRotation, chain[ TransformationComp_PostRotation ] );
}

const aiVector3D& RotationPivot = PropertyGet<aiVector3D>( props, "RotationPivot", ok );
Expand Down

0 comments on commit 9444935

Please sign in to comment.