diff --git a/src/osgPlugins/ive/DataInputStream.cpp b/src/osgPlugins/ive/DataInputStream.cpp index 38342e07b..f696fcd0b 100644 --- a/src/osgPlugins/ive/DataInputStream.cpp +++ b/src/osgPlugins/ive/DataInputStream.cpp @@ -377,7 +377,7 @@ osg::Matrix DataInputStream::readMatrix() { for(int c=0;c<4;c++) { - mat(r,c) = readFloat(); + mat(r,c) = readDouble(); } } diff --git a/src/osgPlugins/ive/DataOutputStream.cpp b/src/osgPlugins/ive/DataOutputStream.cpp index e4bea437e..d6f99590f 100644 --- a/src/osgPlugins/ive/DataOutputStream.cpp +++ b/src/osgPlugins/ive/DataOutputStream.cpp @@ -266,7 +266,7 @@ void DataOutputStream::writeMatrix(const osg::Matrix& mat) { for(int c=0;c<4;c++) { - writeFloat(mat(r,c)); + writeDouble(mat(r,c)); } } }