Fixed copy constructor which was copying a matrix to unitialized memory.

This commit is contained in:
Robert Osfield
2002-01-18 19:00:55 +00:00
parent d20c2795d1
commit baeb396ade

View File

@@ -5,7 +5,7 @@ using namespace osg;
Transform::Transform()
{
_type = DYNAMIC;
_matrix = new osg::Matrix();
_matrix = new Matrix;
_matrix->makeIdentity();
}
@@ -13,7 +13,7 @@ Transform::Transform()
Transform::Transform(const Matrix& mat )
{
_type = DYNAMIC;
(*_matrix) = mat;
_matrix = new Matrix(mat);
}