Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorGaia Clary <gaia.clary@machinimatrix.org>2018-03-11 21:51:16 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2018-03-11 22:59:49 +0300
commit86b1887ded6fc75cf495aabf38022f1231c912ca (patch)
tree198da08fb75236d41ceae869651a8fe941d9c6a6 /source
parent01c27faed0d499374b16ae7fbee4877289608209 (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/collada/AnimationImporter.cpp3
1 files changed, 2 insertions, 1 deletions
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: