2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-12 11:37:27 +00:00

fix: reset xmodel version configuration on every model instead of only on version 1

This commit is contained in:
Jan Laupetin
2025-09-09 17:38:49 +01:00
parent 27ba80c647
commit 49daacfb8b

View File

@@ -109,6 +109,10 @@ namespace
m_gltf_bad_rotation_formulas = true; m_gltf_bad_rotation_formulas = true;
std::cerr << std::format("DEPRECATED: XModel {} is version 1 that made use of bad GLTF bone rotations.\n", xmodel.name); std::cerr << std::format("DEPRECATED: XModel {} is version 1 that made use of bad GLTF bone rotations.\n", xmodel.name);
} }
else
{
m_gltf_bad_rotation_formulas = false;
}
const auto jXModel = jRoot.get<JsonXModel>(); const auto jXModel = jRoot.get<JsonXModel>();
return CreateXModelFromJson(jXModel, xmodel, context, registration); return CreateXModelFromJson(jXModel, xmodel, context, registration);