From 98c79e4918f411d5f4bc6e13a549024880009f14 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 5 Oct 2009 13:41:16 +0000 Subject: [PATCH] From Andreas Goebel, fix to bug in ShapeDrawable::accept(PrimitiveFunctor) implementation for cylinder --- src/osg/ShapeDrawable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osg/ShapeDrawable.cpp b/src/osg/ShapeDrawable.cpp index 1cfe8aa44..907ae811d 100644 --- a/src/osg/ShapeDrawable.cpp +++ b/src/osg/ShapeDrawable.cpp @@ -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(); }