diff --git a/src/osgPlugins/osgjs/WriteVisitor.cpp b/src/osgPlugins/osgjs/WriteVisitor.cpp index 27760a27b..91fb67f19 100644 --- a/src/osgPlugins/osgjs/WriteVisitor.cpp +++ b/src/osgPlugins/osgjs/WriteVisitor.cpp @@ -1034,8 +1034,6 @@ JSONObject* WriteVisitor::createJSONStateSet(osg::StateSet* stateset) osg::ref_ptr defaultCull = new osg::CullFace(); cf = createJSONCullFace(defaultCull.get()); cf->getMaps()["Mode"] = new JSONValue("DISABLE"); - obj->getMaps()["osg.CullFace"] = cf; - attributeList->getArray().push_back(obj); } else { if (!cullFace) { cullFace = new osg::CullFace();