From Andreas Goebel, fix to bug in ShapeDrawable::accept(PrimitiveFunctor) implementation for cylinder

This commit is contained in:
Robert Osfield 2009-10-05 13:41:16 +00:00
parent 5d3b8fe2b0
commit 98c79e4918

View File

@ -1368,8 +1368,8 @@ void PrimitiveShapeVisitor::createCylinderBody(unsigned int numSegments, float r
}
// do last point by hand to ensure no round off errors.
_functor.vertex(osg::Vec3(r,0.0f,topz));
_functor.vertex(osg::Vec3(r,0.0f,basez));
_functor.vertex(osg::Vec3(r,0.0f,topz) * matrix);
_functor.vertex(osg::Vec3(r,0.0f,basez) * matrix);
_functor.end();
}