Merge pull request #3075 from aimoonchen/fix_FBX_no_preservePivots_bug
fix FBX no preservePivots bugpull/3069/head^2
commit
16725cc3f6
|
@ -856,9 +856,10 @@ bool FBXConverter::GenerateTransformationNodeChain(const Model &model, const std
|
||||||
|
|
||||||
// name passed to the method is already unique
|
// name passed to the method is already unique
|
||||||
nd->mName.Set(name);
|
nd->mName.Set(name);
|
||||||
|
// for (const auto &transform : chain) {
|
||||||
for (const auto &transform : chain) {
|
// skip inverse chain for no preservePivots
|
||||||
nd->mTransformation = nd->mTransformation * transform;
|
for (unsigned int i = TransformationComp_Translation; i < TransformationComp_MAXIMUM; i++) {
|
||||||
|
nd->mTransformation = nd->mTransformation * chain[i];
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue