Use isColored, not getShouldRender.

This commit is contained in:
Andrzej Kapolka 2013-05-10 10:46:04 -07:00
parent e6e5b20dee
commit 501aac39da

View file

@ -621,7 +621,7 @@ bool findRayOperation(VoxelNode* node, void* extraData) {
return true; // recurse on children
}
distance *= TREE_SCALE;
if (node->getShouldRender() && (!args->found || distance < args->distance)) {
if (node->isColored() && (!args->found || distance < args->distance)) {
args->node = node;
args->distance = distance;
args->face = face;