From 0429707e6c077ceecd651cd00682016cfac74fe2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 23 Apr 2010 08:39:10 +0000 Subject: fix for camera switching, broke 28359 --- source/blender/editors/screen/screen_edit.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'source/blender/editors/screen/screen_edit.c') diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c index 448144471a9..b75e826c09c 100644 --- a/source/blender/editors/screen/screen_edit.c +++ b/source/blender/editors/screen/screen_edit.c @@ -1724,16 +1724,12 @@ void ED_update_for_newframe(const bContext *C, int mute) #ifdef DURIAN_CAMERA_SWITCH void *camera= scene_camera_switch_find(scene); if(camera && scene->camera != camera) { - - if(camera && scene->camera && (camera != scene->camera)) { - bScreen *sc; - /* are there cameras in the views that are not in the scene? */ - for(sc= CTX_data_main(C)->screen.first; sc; sc= sc->id.next) { - BKE_screen_view3d_scene_sync(sc); - } - } - + bScreen *sc; scene->camera= camera; + /* are there cameras in the views that are not in the scene? */ + for(sc= CTX_data_main(C)->screen.first; sc; sc= sc->id.next) { + BKE_screen_view3d_scene_sync(sc); + } } #endif -- cgit v1.2.3