Fix crash in scenes without camera markers, after recent fix for #37097,

first_camera variable was used uninitialized.
This commit is contained in:
Brecht Van Lommel
2013-10-17 15:51:12 +00:00
parent a0da34871a
commit 56373ea271

View File

@@ -876,7 +876,7 @@ Object *BKE_scene_camera_switch_find(Scene *scene)
int frame = -(MAXFRAME + 1);
int min_frame = MAXFRAME + 1;
Object *camera = NULL;
Object *first_camera;
Object *first_camera = NULL;
for (m = scene->markers.first; m; m = m->next) {
if (m->camera && (m->camera->restrictflag & OB_RESTRICT_RENDER) == 0) {