fixed missing setDrawingPrimitive() def