mirror of
https://github.com/overte-org/overte.git
synced 2025-06-21 22:20:26 +02: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())) {
|
if (info.size > MAXIMUM_LEAF_SIZE || (info.size > MINIMUM_LEAF_SIZE && randomBoolean())) {
|
||||||
return DEFAULT_ORDER;
|
return DEFAULT_ORDER;
|
||||||
}
|
}
|
||||||
info.outputValues[0] = OwnedAttributeValue(_outputs.at(0), encodeInline<QRgb>(qRgb(randIntInRange(0, 255),
|
info.outputValues[0] = OwnedAttributeValue(_outputs.at(0), encodeInline<QRgb>(qRgb(randomColorValue(),
|
||||||
randIntInRange(0, 255), randIntInRange(0, 255))));
|
randomColorValue(), randomColorValue())));
|
||||||
leafCount++;
|
leafCount++;
|
||||||
return STOP_RECURSION;
|
return STOP_RECURSION;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue