Skip to content
Snippets Groups Projects
Commit 90f3595b authored by sdegrande's avatar sdegrande
Browse files

Fix the 3Dmodel exporter tool.

A recent commit (70e864ad) changed Model3DImport::getTransform(), but
we forgot to adapt the exporter tool.
parent fc7d1b22
No related branches found
No related tags found
No related merge requests found
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 CRIStAL/PIRVI. All rights reserved.
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 Samuel Degrande
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 CRIStAL/PIRVI. All rights reserved.
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 Samuel Degrande
// SPDX-FileCopyrightText: Copyright (c) 2020 Guillaume Dauster (LOMME)
// SPDX-FileCopyrightText: Copyright (c) 2020-2021 Paul-Elian Tabarant
// SPDX-License-Identifier: BSD-3-Clause
......@@ -732,7 +732,8 @@ aiScene* ModelImporter::import(const std::string& modelName)
glm::vec3 scale { 1.0f };
bool flipNormY { false };
float sketchupHackFactor { 0.0f };
importer.getTransform(translation, rotation, scale, flipNormY, sketchupHackFactor);
importer.getTransform(translation, rotation, scale);
importer.getModifiers(flipNormY, sketchupHackFactor);
glm::mat4 transformMatrix = glm::translate(translation) * glm::toMat4(rotation) * glm::scale(scale);
// Apply geom transformation (directly on the meshes, to
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment