Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/scene.c
| Show First 20 Lines • Show All 1,535 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| void BKE_scene_graph_evaluated_ensure(Depsgraph *depsgraph, Main *bmain) | void BKE_scene_graph_evaluated_ensure(Depsgraph *depsgraph, Main *bmain) | ||||
| { | { | ||||
| scene_graph_update_tagged(depsgraph, bmain, true); | scene_graph_update_tagged(depsgraph, bmain, true); | ||||
| } | } | ||||
| /* applies changes right away, does all sets too */ | /* applies changes right away, does all sets too */ | ||||
| void BKE_scene_graph_update_for_newframe(Depsgraph *depsgraph, Main *bmain) | void BKE_scene_graph_update_for_newframe(Depsgraph *depsgraph) | ||||
| { | { | ||||
| Scene *scene = DEG_get_input_scene(depsgraph); | Scene *scene = DEG_get_input_scene(depsgraph); | ||||
| ViewLayer *view_layer = DEG_get_input_view_layer(depsgraph); | ViewLayer *view_layer = DEG_get_input_view_layer(depsgraph); | ||||
| Main *bmain = DEG_get_bmain(depsgraph); | |||||
| /* Keep this first. */ | /* Keep this first. */ | ||||
| BKE_callback_exec_id(bmain, &scene->id, BKE_CB_EVT_FRAME_CHANGE_PRE); | BKE_callback_exec_id(bmain, &scene->id, BKE_CB_EVT_FRAME_CHANGE_PRE); | ||||
| for (int pass = 0; pass < 2; pass++) { | for (int pass = 0; pass < 2; pass++) { | ||||
| /* Update animated image textures for particles, modifiers, gpu, etc, | /* Update animated image textures for particles, modifiers, gpu, etc, | ||||
| * call this at the start so modifiers with textures don't lag 1 frame. | * call this at the start so modifiers with textures don't lag 1 frame. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 1,044 Lines • Show Last 20 Lines | |||||