From 2151573ccdbb1c97099f40ed074b1734c2f59de1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 16 Nov 2006 16:25:29 +0000 Subject: [PATCH] From Michael Platings, Fixed Geometry cloning of the texture coordinates and vertex attributes. --- src/osg/Geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index 86fd6958d..1508cfec0 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -447,14 +447,14 @@ Geometry::Geometry(const Geometry& geometry,const CopyOp& copyop): titr!=geometry._texCoordList.end(); ++titr) { - _texCoordList.push_back(*titr); + _texCoordList.push_back(ArrayData(*titr, copyop)); } for(ArrayList::const_iterator vitr=geometry._vertexAttribList.begin(); vitr!=geometry._vertexAttribList.end(); ++vitr) { - _vertexAttribList.push_back(*vitr); + _vertexAttribList.push_back(ArrayData(*vitr, copyop)); } }