mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Use randomColorValue, since we have it.
This commit is contained in:
parent
811815e61f
commit
626bd42b7b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue