Remove commented out code from pbvh.c

Code was commented out in 2009
This commit is contained in:
Dalai Felinto 2017-03-15 12:06:46 +01:00
parent 6d8a25920d
commit f274332bb3
1 changed files with 0 additions and 18 deletions

View File

@ -1739,24 +1739,6 @@ void BKE_pbvh_node_draw(PBVHNode *node, void *data_v)
{
PBVHNodeDrawData *data = data_v;
#if 0
/* XXX: Just some quick code to show leaf nodes in different colors */
float col[3];
float spec[3] = {0.0f, 0.0f, 0.0f};
if (0) { //is_partial) {
col[0] = (rand() / (float)RAND_MAX); col[1] = col[2] = 0.6;
}
else {
srand((long long)node);
for (int i = 0; i < 3; ++i)
col[i] = (rand() / (float)RAND_MAX) * 0.3 + 0.7;
}
GPU_basic_shader_colors(col, spec, 0, 1.0f);
glColor3f(1, 0, 0);
#endif
if (!(node->flag & PBVH_FullyHidden)) {
GPU_draw_pbvh_buffers(node->draw_buffers,
data->setMaterial,