Added intializer

This commit is contained in:
Robert Osfield
2016-06-27 11:35:46 +01:00
parent 62d1e7ac64
commit 73e4d6c176

View File

@@ -258,7 +258,8 @@ class MaterialData
public:
MaterialData() :
mMaterial(new osg::Material),
mColorArray(new osg::Vec4Array(1))
mColorArray(new osg::Vec4Array(1)),
mTranslucent(false)
{
mMaterial->setDataVariance(osg::Object::STATIC);
mColorArray->setDataVariance(osg::Object::STATIC);