Use randomColorValue, since we have it.

This commit is contained in:
Andrzej Kapolka 2014-06-20 18:22:36 -07:00
parent 811815e61f
commit 626bd42b7b

View file

@ -437,8 +437,8 @@ int RandomVisitor::visit(MetavoxelInfo& info) {
if (info.size > MAXIMUM_LEAF_SIZE || (info.size > MINIMUM_LEAF_SIZE && randomBoolean())) {
return DEFAULT_ORDER;
}
info.outputValues[0] = OwnedAttributeValue(_outputs.at(0), encodeInline<QRgb>(qRgb(randIntInRange(0, 255),
randIntInRange(0, 255), randIntInRange(0, 255))));
info.outputValues[0] = OwnedAttributeValue(_outputs.at(0), encodeInline<QRgb>(qRgb(randomColorValue(),
randomColorValue(), randomColorValue())));
leafCount++;
return STOP_RECURSION;
}