Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_files.c
| Show First 20 Lines • Show All 1,223 Lines • ▼ Show 20 Lines | if ((scene->camera == NULL) && (screen != NULL)) { | ||||
| } | } | ||||
| } | } | ||||
| 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 */ | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| if (scene->camera) { | if (scene->camera) { | ||||
| ibuf = ED_view3d_draw_offscreen_imbuf_simple(depsgraph, | ibuf = ED_view3d_draw_offscreen_imbuf_simple(depsgraph, | ||||
| scene, | scene, | ||||
| NULL, | NULL, | ||||
| OB_SOLID, | OB_SOLID, | ||||
| scene->camera, | scene->camera, | ||||
| BLEN_THUMB_SIZE * 2, | BLEN_THUMB_SIZE * 2, | ||||
| ▲ Show 20 Lines • Show All 1,891 Lines • Show Last 20 Lines | |||||