fix no preservePivots bug
parent
db74f35410
commit
7c3fd351d3
|
@ -883,10 +883,12 @@ namespace Assimp {
|
||||||
// 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) {
|
||||||
nd->mTransformation = nd->mTransformation * transform;
|
// skip inverse chain for no preservePivots
|
||||||
}
|
for (unsigned int i = TransformationComp_Translation; i < TransformationComp_MAXIMUM; i++) {
|
||||||
return false;
|
nd->mTransformation = nd->mTransformation * chain[i];
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FBXConverter::SetupNodeMetadata(const Model& model, aiNode& nd)
|
void FBXConverter::SetupNodeMetadata(const Model& model, aiNode& nd)
|
||||||
|
|
Loading…
Reference in New Issue