From b2fa36f02b4e49255f9f616414f848fc1fe138c8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 18 Jun 2013 17:49:57 +0000 Subject: [PATCH] Moved the assignment of the normal binding to after the setNormalArray call --- src/osgPlugins/ac/ac3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPlugins/ac/ac3d.cpp b/src/osgPlugins/ac/ac3d.cpp index 575a045a8..4063d49d9 100644 --- a/src/osgPlugins/ac/ac3d.cpp +++ b/src/osgPlugins/ac/ac3d.cpp @@ -1012,10 +1012,10 @@ class SurfaceBin : public PrimitiveBin { geometry->setDataVariance(osg::Object::STATIC); geometry->setColorArray(material.getColorArray()); geometry->setColorBinding(osg::Geometry::BIND_OVERALL); - geometry->setNormalBinding(osg::Geometry::BIND_PER_VERTEX); osg::Vec3Array* normalArray = new osg::Vec3Array; normalArray->setDataVariance(osg::Object::STATIC); geometry->setNormalArray(normalArray); + geometry->setNormalBinding(osg::Geometry::BIND_PER_VERTEX); osg::Vec3Array* vertexArray = new osg::Vec3Array; vertexArray->setDataVariance(osg::Object::STATIC); geometry->setVertexArray(vertexArray);