History

AnimDebugDraw: enable bound now that culling works. :)

Anthony J. Thibault committed 10 years ago

Commit d6708531 parent bc967f01 file · +0 −6Browse files

Showing the changes to libraries/render-utils/src/AnimDebugDraw.cpp (1 of 1 file). Show all

Unified · Split

libraries/render-utils/src/AnimDebugDraw.cpp+0−6
@@ -392,20 +392,14 @@ void AnimDebugDraw::update() { · 391 unmodified lines
392 392
393 assert(numVerts == (v - verts));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 render::Item::Bound theBound;395 render::Item::Bound theBound;
400 for (int i = 0; i < numVerts; i++) {396 for (int i = 0; i < numVerts; i++) {
401 theBound += verts[i].pos;397 theBound += verts[i].pos;
402 }398 }
403 data._bound = theBound;399 data._bound = theBound;
404 */
405 400
406 data._isVisible = (numVerts > 0);401 data._isVisible = (numVerts > 0);
407 402
408
409 data._indexBuffer->resize(sizeof(uint16_t) * numVerts);403 data._indexBuffer->resize(sizeof(uint16_t) * numVerts);
410 uint16_t* indices = (uint16_t*)data._indexBuffer->editData();404 uint16_t* indices = (uint16_t*)data._indexBuffer->editData();
411 for (int i = 0; i < numVerts; i++) {405 for (int i = 0; i < numVerts; i++) {