Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_SceneActuator.cpp
| Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| KX_SceneList* sl = m_KetsjiEngine->CurrentScenes(); | KX_SceneList* sl = m_KetsjiEngine->CurrentScenes(); | ||||
| STR_String name = STR_String(camName); | STR_String name = STR_String(camName); | ||||
| KX_SceneList::iterator it = sl->begin(); | KX_SceneList::iterator it = sl->begin(); | ||||
| KX_Camera* cam = NULL; | KX_Camera* cam = NULL; | ||||
| while ((it != sl->end()) && (!cam)) | while ((it != sl->end()) && (!cam)) | ||||
| { | { | ||||
| cam = (*it)->FindCamera(name); | KX_Scene* scene = (*it); | ||||
| cam = (KX_Camera*)scene->GetCameraList()->FindValue(name); | |||||
| it++; | it++; | ||||
| } | } | ||||
| return cam; | return cam; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines | |||||