From 41724ace2d0fdba04330b95d4018b499a09ea73c Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Mon, 18 Sep 2017 14:10:58 +0300 Subject: [PATCH] Collada: Silence uninitialized variable warning This is a false positive. Value of 'method' is only used if 'targetMeshes' contains something and all paths through the first loop which add stuff to 'targetMeshes' also set 'method'. --- code/ColladaLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ColladaLoader.cpp b/code/ColladaLoader.cpp index 0e970b4..ccf79ed 100644 --- a/code/ColladaLoader.cpp +++ b/code/ColladaLoader.cpp @@ -674,7 +674,7 @@ aiMesh* ColladaLoader::CreateMesh( const ColladaParser& pParser, const Collada:: // create morph target meshes if any std::vector targetMeshes; std::vector targetWeights; - Collada::MorphMethod method; + Collada::MorphMethod method = Collada::Normalized; for(std::map::const_iterator it = pParser.mControllerLibrary.begin(); it != pParser.mControllerLibrary.end(); it++) -- 2.7.4