diff --git a/libraries/render-utils/src/AnimDebugDraw.cpp b/libraries/render-utils/src/AnimDebugDraw.cpp index 44bf533739..a0f7d7eca1 100644 --- a/libraries/render-utils/src/AnimDebugDraw.cpp +++ b/libraries/render-utils/src/AnimDebugDraw.cpp @@ -392,18 +392,20 @@ void AnimDebugDraw::update() { assert(numVerts == (v - verts)); - // This render item bound shit is broken. - // Fuck that, use the big ass bound instead. + // The RenderItem culling is not working correctly + // Workaround this issue by using the default constructed + // item._bound which is a 16 km cube. /* render::Item::Bound theBound; for (int i = 0; i < numVerts; i++) { theBound += verts[i].pos; } + data._bound = theBound; */ data._isVisible = (numVerts > 0); - //data._bound = theBound; + data._indexBuffer->resize(sizeof(uint16_t) * numVerts); uint16_t* indices = (uint16_t*)data._indexBuffer->editData(); for (int i = 0; i < numVerts; i++) {