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
392 392
393 assert(numVerts == (v - verts));393 assert(numVerts == (v - verts));
394 394
395 // This render item bound shit is broken.395 // The RenderItem culling is not working correctly
396 // Fuck that, use the big ass bound instead.396 // Workaround this issue by using the default constructed
397 // item._bound which is a 16 km cube.
397 /*398 /*
398 render::Item::Bound theBound;399 render::Item::Bound theBound;
399 for (int i = 0; i < numVerts; i++) {400 for (int i = 0; i < numVerts; i++) {
400 theBound += verts[i].pos;401 theBound += verts[i].pos;
401 }402 }
403 data._bound = theBound;
402 */404 */
403 405
404 data._isVisible = (numVerts > 0);406 data._isVisible = (numVerts > 0);
405 407
406 //data._bound = theBound;408
407 data._indexBuffer->resize(sizeof(uint16_t) * numVerts);409 data._indexBuffer->resize(sizeof(uint16_t) * numVerts);
408 uint16_t* indices = (uint16_t*)data._indexBuffer->editData();410 uint16_t* indices = (uint16_t*)data._indexBuffer->editData();
409 for (int i = 0; i < numVerts; i++) {411 for (int i = 0; i < numVerts; i++) {