Merge pull request #3942 from ZappoMan/rayPickBug

fix ray picking output distance to be meters
This commit is contained in:
AndrewMeadows 2014-12-10 13:03:10 -08:00
commit c9d16c389a

View file

@ -728,6 +728,10 @@ bool Octree::findRayIntersection(const glm::vec3& origin, const glm::vec3& direc
}
recurseTreeWithOperation(findRayIntersectionOp, &args);
if (args.found) {
args.distance *= (float)(TREE_SCALE); // scale back up to meters
}
if (gotLock) {
unlock();