From: frohlich Date: Thu, 3 Sep 2009 20:14:32 +0000 (+0000) Subject: Return a osg::Vec value instead of a non const reference. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3d213fa713e0e33bb893dee93836ac1b3f88a3ab;p=simgear.git Return a osg::Vec value instead of a non const reference. Modified Files: scene/model/SGMaterialAnimation.cxx --- diff --git a/simgear/scene/model/SGMaterialAnimation.cxx b/simgear/scene/model/SGMaterialAnimation.cxx index 72df88e5..1e7afdd9 100644 --- a/simgear/scene/model/SGMaterialAnimation.cxx +++ b/simgear/scene/model/SGMaterialAnimation.cxx @@ -98,7 +98,7 @@ struct ColorSpec { return v; } - osg::Vec4& rgbaVec4() + osg::Vec4 rgbaVec4() { return rgba().osg(); }