Fixed bug in KROctreeNode::lineCast that would cause it to always return false

--HG--
extra : source : a47a7a9a0b39a68629eb72aecc093400e4bb1568
This commit is contained in:
2013-09-07 17:34:06 -07:00
parent 8484fe95d4
commit 44ea492556

View File

@@ -203,7 +203,6 @@ bool KROctreeNode::lineCast(const KRVector3 &v0, const KRVector3 &v1, KRHitInfo
// Optimization: If we already have a hit, only search for hits that are closer
hit_found = lineCast(v0, hitinfo.getPosition(), hitinfo, layer_mask);
} else {
bool hit_found = false;
if(getBounds().intersectsLine(v0, v1)) {
for(std::set<KRNode *>::iterator nodes_itr=m_sceneNodes.begin(); nodes_itr != m_sceneNodes.end(); nodes_itr++) {
KRCollider *collider = dynamic_cast<KRCollider *>(*nodes_itr);