Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/eval/deg_eval.cc
| Show First 20 Lines • Show All 272 Lines • ▼ Show 20 Lines | void deg_evaluate_on_refresh(EvaluationContext *eval_ctx, | ||||
| /* Nothing to update, early out. */ | /* Nothing to update, early out. */ | ||||
| if (BLI_gset_size(graph->entry_tags) == 0) { | if (BLI_gset_size(graph->entry_tags) == 0) { | ||||
| return; | return; | ||||
| } | } | ||||
| /* Set time for the current graph evaluation context. */ | /* Set time for the current graph evaluation context. */ | ||||
| TimeSourceDepsNode *time_src = graph->find_time_source(); | TimeSourceDepsNode *time_src = graph->find_time_source(); | ||||
| eval_ctx->depsgraph = (::Depsgraph *)graph; | eval_ctx->depsgraph = (::Depsgraph *)graph; | ||||
| eval_ctx->scene_layer = DEG_get_evaluated_scene_layer((::Depsgraph *)graph); | eval_ctx->view_layer = DEG_get_evaluated_view_layer((::Depsgraph *)graph); | ||||
| eval_ctx->ctime = time_src->cfra; | eval_ctx->ctime = time_src->cfra; | ||||
| /* XXX could use a separate pool for each eval context */ | /* XXX could use a separate pool for each eval context */ | ||||
| DepsgraphEvalState state; | DepsgraphEvalState state; | ||||
| state.eval_ctx = eval_ctx; | state.eval_ctx = eval_ctx; | ||||
| state.graph = graph; | state.graph = graph; | ||||
| TaskScheduler *task_scheduler; | TaskScheduler *task_scheduler; | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||