Corrected bug in ray cast function which caused it return inaccurate results

Exposed the KRViewport from the KRCamera object
Fixed crash that occurred if you deleted a KRNode
KRNode children are now in an un-ordered std::set instead of an ordered std::vector
This commit is contained in:
2013-04-30 01:18:36 -07:00
parent f13d93de29
commit 21a59080b5
6 changed files with 39 additions and 18 deletions

View File

@@ -139,7 +139,7 @@ void KRLODGroup::updateLODVisibility(const KRViewport &viewport)
getScene().notify_sceneGraphCreate(this);
m_lod_visible = true;
}
for(std::vector<KRNode *>::iterator itr=m_childNodes.begin(); itr < m_childNodes.end(); ++itr) {
for(std::set<KRNode *>::iterator itr=m_childNodes.begin(); itr != m_childNodes.end(); ++itr) {
(*itr)->updateLODVisibility(viewport);
}
}