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
392392
393393 assert(numVerts == (v - verts));
394394
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− /*
399395 render::Item::Bound theBound;
400396 for (int i = 0; i < numVerts; i++) {
401397 theBound += verts[i].pos;
402398 }
403399 data._bound = theBound;
404− */
405400
406401 data._isVisible = (numVerts > 0);
407402
408−
409403 data._indexBuffer->resize(sizeof(uint16_t) * numVerts);
410404 uint16_t* indices = (uint16_t*)data._indexBuffer->editData();
411405 for (int i = 0; i < numVerts; i++) {