History

Removed passive-aggressive comment, (it was a late night)

Anthony J. Thibault committed 10 years ago

Commit 0ce004c1 parent ab390f71 file · +5 −3Browse 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+5−3
@@ -392,18 +392,20 @@ void AnimDebugDraw::update() { · 391 unmodified lines
392392
393393 assert(numVerts == (v - verts));
394394
395− // This render item bound shit is broken.
396− // Fuck that, use the big ass bound instead.
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.
397398 /*
398399 render::Item::Bound theBound;
399400 for (int i = 0; i < numVerts; i++) {
400401 theBound += verts[i].pos;
401402 }
403+ data._bound = theBound;
402404 */
403405
404406 data._isVisible = (numVerts > 0);
405407
406− //data._bound = theBound;
408+
407409 data._indexBuffer->resize(sizeof(uint16_t) * numVerts);
408410 uint16_t* indices = (uint16_t*)data._indexBuffer->editData();
409411 for (int i = 0; i < numVerts; i++) {