mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-10 15:19:21 +02:00
Merge pull request #7974 from hyperlogic/tony/daz3d-model-fix
Fix for models exported from Daz3D.
This commit is contained in:
commit
05ca715074
1 changed files with 1 additions and 1 deletions
|
@ -759,7 +759,7 @@ FBXGeometry* FBXReader::extractFBXGeometry(const QVariantHash& mapping, const QS
|
|||
model.preTransform = glm::translate(rotationOffset) * glm::translate(rotationPivot);
|
||||
model.preRotation = glm::quat(glm::radians(preRotation));
|
||||
model.rotation = glm::quat(glm::radians(rotation));
|
||||
model.postRotation = glm::quat(glm::radians(postRotation));
|
||||
model.postRotation = glm::inverse(glm::quat(glm::radians(postRotation)));
|
||||
model.postTransform = glm::translate(-rotationPivot) * glm::translate(scaleOffset) *
|
||||
glm::translate(scalePivot) * glm::scale(scale) * glm::translate(-scalePivot);
|
||||
// NOTE: angles from the FBX file are in degrees
|
||||
|
|
Loading…
Reference in a new issue