mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 20:58:38 +02:00
changed comment to use TREE_SCALE instead of 16000
This commit is contained in:
parent
f51b1d2ac2
commit
286b7bf573
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ void LineEntityItem::setLinePoints(const QVector<glm::vec3>& points) {
|
||||||
for (int i = 0; i < points.size(); i++) {
|
for (int i = 0; i < points.size(); i++) {
|
||||||
glm::vec3 point = points.at(i);
|
glm::vec3 point = points.at(i);
|
||||||
// Make sure all of our points are valid numbers.
|
// Make sure all of our points are valid numbers.
|
||||||
// Must be greater than 0 because vector component is set to 0 if it is invalid data. Also should never be greater than 16000
|
// Must be greater than 0 because vector component is set to 0 if it is invalid data. Also should never be greater than TREE_SCALE
|
||||||
if ( (point.x > 0 && point.x < TREE_SCALE) && (point.y > 0 && point.y < TREE_SCALE) && (point.z > 0 && point.z < TREE_SCALE) ) {
|
if ( (point.x > 0 && point.x < TREE_SCALE) && (point.y > 0 && point.y < TREE_SCALE) && (point.z > 0 && point.z < TREE_SCALE) ) {
|
||||||
sanitizedPoints << point;
|
sanitizedPoints << point;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue