From 10d16c92fe56e5e0e423a6aac88ffe67cc55fcf5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 2 Feb 2009 17:46:16 +0000 Subject: [PATCH] Added initializer for local Quat definition --- src/osg/MatrixDecomposition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/MatrixDecomposition.cpp b/src/osg/MatrixDecomposition.cpp index 0b4bd303e..9cda7c4a5 100644 --- a/src/osg/MatrixDecomposition.cpp +++ b/src/osg/MatrixDecomposition.cpp @@ -449,7 +449,7 @@ namespace MatrixDecomposition #define cycle(a,p) if (p) {a[3]=a[0]; a[0]=a[1]; a[1]=a[2]; a[2]=a[3];}\ else {a[3]=a[2]; a[2]=a[1]; a[1]=a[0]; a[0]=a[3];} - Quat p; + Quat p = {0.0, 0.0, 0.0, 1.0}; double ka[4]; int i, turn = -1; ka[X] = k->x; ka[Y] = k->y; ka[Z] = k->z;