Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/sequencer.c
| Show First 20 Lines • Show All 3,587 Lines • ▼ Show 20 Lines | if ((sequencer_view3d_fn && do_seq_gl && camera) && is_thread_main) { | ||||
| /* for old scene this can be uninitialized, | /* for old scene this can be uninitialized, | ||||
| * should probably be added to do_versions at some point if the functionality stays */ | * should probably be added to do_versions at some point if the functionality stays */ | ||||
| if (context->scene->r.seq_prev_type == 0) { | if (context->scene->r.seq_prev_type == 0) { | ||||
| context->scene->r.seq_prev_type = 3 /* == OB_SOLID */; | context->scene->r.seq_prev_type = 3 /* == OB_SOLID */; | ||||
| } | } | ||||
| /* opengl offscreen render */ | /* opengl offscreen render */ | ||||
| depsgraph = BKE_scene_get_depsgraph(context->bmain, scene, view_layer, true); | depsgraph = BKE_scene_get_depsgraph(context->bmain, scene, view_layer, true); | ||||
| BKE_scene_graph_update_for_newframe(depsgraph, context->bmain); | BKE_scene_graph_update_for_newframe(depsgraph); | ||||
| ibuf = sequencer_view3d_fn( | ibuf = sequencer_view3d_fn( | ||||
| /* set for OpenGL render (NULL when scrubbing) */ | /* set for OpenGL render (NULL when scrubbing) */ | ||||
| depsgraph, | depsgraph, | ||||
| scene, | scene, | ||||
| &context->scene->display.shading, | &context->scene->display.shading, | ||||
| context->scene->r.seq_prev_type, | context->scene->r.seq_prev_type, | ||||
| camera, | camera, | ||||
| width, | width, | ||||
| ▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
| finally: | finally: | ||||
| /* restore */ | /* restore */ | ||||
| scene->r.scemode = orig_data.scemode; | scene->r.scemode = orig_data.scemode; | ||||
| scene->r.cfra = orig_data.cfra; | scene->r.cfra = orig_data.cfra; | ||||
| scene->r.subframe = orig_data.subframe; | scene->r.subframe = orig_data.subframe; | ||||
| if (is_frame_update && (depsgraph != NULL)) { | if (is_frame_update && (depsgraph != NULL)) { | ||||
| BKE_scene_graph_update_for_newframe(depsgraph, context->bmain); | BKE_scene_graph_update_for_newframe(depsgraph); | ||||
| } | } | ||||
| #ifdef DURIAN_CAMERA_SWITCH | #ifdef DURIAN_CAMERA_SWITCH | ||||
| /* stooping to new low's in hackyness :( */ | /* stooping to new low's in hackyness :( */ | ||||
| scene->r.mode &= orig_data.mode | ~R_NO_CAMERA_SWITCH; | scene->r.mode &= orig_data.mode | ~R_NO_CAMERA_SWITCH; | ||||
| #endif | #endif | ||||
| return ibuf; | return ibuf; | ||||
| ▲ Show 20 Lines • Show All 2,482 Lines • Show Last 20 Lines | |||||