Cleanup: whitespace

This commit is contained in:
Campbell Barton 2015-08-06 12:34:19 +10:00
parent 89edddb26c
commit 5af7257309
8 changed files with 21 additions and 20 deletions

@ -1674,9 +1674,10 @@ CListValue* KX_GameObject::GetChildrenRecursive()
KX_Scene* KX_GameObject::GetScene()
{
SG_Node* node = this->GetSGNode();
if (node == NULL)
if (node == NULL) {
// this happens for object in non active layers, rely on static scene then
return KX_GetActiveScene();
}
return static_cast<KX_Scene*>(node->GetSGClientInfo());
}