From 5ed01bcfa386ec889d4840eaa399d30d082e09e6 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 20 Jan 2023 20:00:36 +0100 Subject: [PATCH] Ensure initializer exists - Fixing a Codaxy finding. --- code/PostProcessing/LimitBoneWeightsProcess.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/PostProcessing/LimitBoneWeightsProcess.cpp b/code/PostProcessing/LimitBoneWeightsProcess.cpp index 8820c0113..51fb43dfc 100644 --- a/code/PostProcessing/LimitBoneWeightsProcess.cpp +++ b/code/PostProcessing/LimitBoneWeightsProcess.cpp @@ -46,6 +46,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. namespace Assimp { +// Make sure this value is set. +#ifndef AI_LMW_MAX_WEIGHTS +# define AI_LMW_MAX_WEIGHTS 16 +#endif + // ------------------------------------------------------------------------------------------------ // Constructor to be privately used by Importer LimitBoneWeightsProcess::LimitBoneWeightsProcess() : mMaxWeights(AI_LMW_MAX_WEIGHTS) {}