mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 09:08:47 +02:00
use UP_AXIS_Y
This commit is contained in:
parent
db1c78246f
commit
f47ec09927
1 changed files with 3 additions and 1 deletions
|
@ -484,7 +484,9 @@ HFMModel* FBXSerializer::extractHFMModel(const QVariantHash& mapping, const QStr
|
||||||
constexpr int UP_AXIS_Y = 1;
|
constexpr int UP_AXIS_Y = 1;
|
||||||
constexpr int UP_AXIS_Z = 2;
|
constexpr int UP_AXIS_Z = 2;
|
||||||
int upAxis = subobject.properties.at(index).toInt();
|
int upAxis = subobject.properties.at(index).toInt();
|
||||||
if (upAxis == UP_AXIS_Z) {
|
if (upAxis == UP_AXIS_Y) {
|
||||||
|
// No update necessary, y up is the default
|
||||||
|
} else if (upAxis == UP_AXIS_Z) {
|
||||||
upAxisZRotation = glm::angleAxis(glm::radians(-90.0f), glm::vec3(1.0f, 0.0f, 0.0f));
|
upAxisZRotation = glm::angleAxis(glm::radians(-90.0f), glm::vec3(1.0f, 0.0f, 0.0f));
|
||||||
applyUpAxisZRotation = true;
|
applyUpAxisZRotation = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue