forked from bartvdbraak/blender
Cleanup: whitespace
This commit is contained in:
parent
89edddb26c
commit
5af7257309
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user