From 5c3c0ed17cf3c19e8e0c473fffb66a89f85bf149 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 9 Sep 2003 10:09:20 +0000 Subject: [PATCH] Made writeMatrix/readMatrix use doubles exclusively. --- src/osgPlugins/ive/DataInputStream.cpp | 2 +- src/osgPlugins/ive/DataOutputStream.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)); } } }