diff --git a/src/osg/ShapeDrawable.cpp b/src/osg/ShapeDrawable.cpp index 12bed5d2d..635df73d1 100644 --- a/src/osg/ShapeDrawable.cpp +++ b/src/osg/ShapeDrawable.cpp @@ -13,6 +13,7 @@ #include #include #include +#include using namespace osg; @@ -76,6 +77,9 @@ void ShapeDrawable::setTessellationHints(TessellationHints* hints) void ShapeDrawable::build() { + // we can't create a tessellation for a KdTree + if (dynamic_cast(_shape.get())!=0) return; + // reset all the properties. setVertexArray(0); setNormalArray(0);