From e17ad60c2dc2934a5ce01ffcca657e6c06e49ce0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 14 Oct 2016 18:00:40 +0100 Subject: [PATCH] Added _color copy to the copy constructor --- src/osg/ShapeDrawable.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/osg/ShapeDrawable.cpp b/src/osg/ShapeDrawable.cpp index f7bf94ffb..7f5510915 100644 --- a/src/osg/ShapeDrawable.cpp +++ b/src/osg/ShapeDrawable.cpp @@ -26,9 +26,10 @@ ShapeDrawable::ShapeDrawable(Shape* shape,TessellationHints* hints): setShape(shape); } -ShapeDrawable::ShapeDrawable(const ShapeDrawable& pg,const CopyOp& copyop): - Geometry(pg,copyop), - _tessellationHints(pg._tessellationHints) +ShapeDrawable::ShapeDrawable(const ShapeDrawable& sd,const CopyOp& copyop): + Geometry(sd,copyop), + _color(sd._color), + _tessellationHints(sd._tessellationHints) { }