Bugfix: game engine does not support non-camera type objects as a

camera, would crash, so disabled using the object as a camera then.
This commit is contained in:
Brecht Van Lommel 2008-07-28 14:28:19 +00:00
parent 91ece746b8
commit bc85f11e68

@ -2258,7 +2258,8 @@ void BL_ConvertBlenderObjects(struct Main* maggie,
}
}
if (blenderscene->camera) {
// non-camera objects not supported as camera currently
if (blenderscene->camera && blenderscene->camera->type == OB_CAMERA) {
KX_Camera *gamecamera= (KX_Camera*) converter->FindGameObject(blenderscene->camera);
if(gamecamera)