Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_files.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| if (G.background || scene == NULL) { | if (G.background || scene == NULL) { | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| if (screen != NULL) { | if (screen != NULL) { | ||||
| area = BKE_screen_find_big_area(screen, SPACE_VIEW3D, 0); | area = BKE_screen_find_big_area(screen, SPACE_VIEW3D, 0); | ||||
| if (area) { | if (area) { | ||||
| v3d = area->spacedata.first; | v3d = area->spacedata.first; | ||||
| region = BKE_area_find_region_type(area, RGN_TYPE_WINDOW); | |||||
| } | } | ||||
| } | } | ||||
| if (scene->camera == NULL && v3d == NULL) { | if (scene->camera == NULL && v3d == NULL) { | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| /* gets scaled to BLEN_THUMB_SIZE */ | /* gets scaled to BLEN_THUMB_SIZE */ | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||