Commit: 86b1887ded6fc75cf495aabf38022f1231c912ca Author: Gaia Clary Date: Sun Mar 11 19:51:16 2018 +0100 Branches: master https://developer.blender.org/rB86b1887ded6fc75cf495aabf38022f1231c912ca
Cleanup Collada: make sure float array is initialised This is just to silence a compiler warning and keeping the code clean. The actual code never uses uninitialised array elements. =================================================================== M source/blender/collada/AnimationImporter.cpp =================================================================== diff --git a/source/blender/collada/AnimationImporter.cpp b/source/blender/collada/AnimationImporter.cpp index 533090225dc..0b61f7fa8b2 100644 --- a/source/blender/collada/AnimationImporter.cpp +++ b/source/blender/collada/AnimationImporter.cpp @@ -1561,7 +1561,8 @@ Object *AnimationImporter::translate_animation_OLD(COLLADAFW::Node *node, copy_m4_m4(mat, matfra); } - float val[4], rot[4], loc[3], scale[3]; + float val[4] = {}; + float rot[4], loc[3], scale[3]; switch (tm_type) { case COLLADAFW::Transformation::ROTATE: _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs