Assimp fixes

Should now apply the same corrective fix to modelled bounds
This commit is contained in:
marauder2k7 2026-06-20 17:09:43 +01:00
parent 0b73e701ac
commit 887f239a20
4 changed files with 63 additions and 15 deletions

View file

@ -981,9 +981,19 @@ static bool sReadAssimp(const Torque::Path &path, TSShape*& res_shape)
// Allow TSShapeConstructor object to override properties
ColladaUtils::getOptions().reset();
TSShapeConstructor* tscon = TSShapeConstructor::findShapeConstructorByFilename(path.getFullPath());
bool autoDetectUpAxis = true;
if (tscon)
{
ColladaUtils::getOptions() = tscon->mOptions;
autoDetectUpAxis = (tscon->mOptions.upAxis == UPAXISTYPE_COUNT);
}
AssimpShapeLoader loader;
TSShape* tss = loader.generateShape(path);
if (tscon && autoDetectUpAxis)
{
tscon->mOptions = ColladaUtils::getOptions();
}
AssimpShapeLoader loader;