From 002d6dc016f275c6018d67367388a8d2dae4b9a0 Mon Sep 17 00:00:00 2001 From: tanolino Date: Wed, 18 May 2022 15:22:11 +0200 Subject: [PATCH] Inifinite loop on bad import files I had an import file that caused an infinite loop. I don't exactly know how this algorithm works here but maybe we should change it more. Probably calculate the amount of steps and chop linear. --- code/AssetLib/FBX/FBXConverter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/AssetLib/FBX/FBXConverter.cpp b/code/AssetLib/FBX/FBXConverter.cpp index 4de142075..7558c27a7 100644 --- a/code/AssetLib/FBX/FBXConverter.cpp +++ b/code/AssetLib/FBX/FBXConverter.cpp @@ -3325,6 +3325,10 @@ FBXConverter::KeyFrameListList FBXConverter::GetRotationKeyframeList(const std:: Keys->push_back(tnew); Values->push_back(vnew); } + else { + // Something broke + break; + } tp = tnew; vp = vnew; }