Fixed return value

This commit is contained in:
Robert Osfield
2016-06-23 10:52:16 +01:00
parent 55b3becb7c
commit 79f174aee4

View File

@@ -63,8 +63,7 @@ float CollectOccludersVisitor::getDistanceFromEyePoint(const Vec3& pos, bool wit
const Matrix& matrix = *_modelviewStack.back();
float dist = -(pos[0]*matrix(0,2)+pos[1]*matrix(1,2)+pos[2]*matrix(2,2)+matrix(3,2));
if (withLODScale) return dist*getLODScale();
else return dist*getLODScale();
return withLODScale ? dist*getLODScale() : dist;
}
void CollectOccludersVisitor::apply(osg::Node& node)