Showing the changes to libraries/render-utils/src/AnimDebugDraw.cpp (1 of 1 file). Show all
Unified · Split
| @@ -392,20 +392,14 @@ void AnimDebugDraw::update() { · 391 unmodified lines | ||
| 392 | 392 | |
| 393 | 393 | assert(numVerts == (v - verts)); |
| 394 | 394 | |
| 395 | − // The RenderItem culling is not working correctly | |
| 396 | − // Workaround this issue by using the default constructed | |
| 397 | − // item._bound which is a 16 km cube. | |
| 398 | − /* | |
| 399 | 395 | render::Item::Bound theBound; |
| 400 | 396 | for (int i = 0; i < numVerts; i++) { |
| 401 | 397 | theBound += verts[i].pos; |
| 402 | 398 | } |
| 403 | 399 | data._bound = theBound; |
| 404 | − */ | |
| 405 | 400 | |
| 406 | 401 | data._isVisible = (numVerts > 0); |
| 407 | 402 | |
| 408 | − | |
| 409 | 403 | data._indexBuffer->resize(sizeof(uint16_t) * numVerts); |
| 410 | 404 | uint16_t* indices = (uint16_t*)data._indexBuffer->editData(); |
| 411 | 405 | for (int i = 0; i < numVerts; i++) { |