Fix T45052: Compositing-Masks are not editable with new DepsGraph

This commit fixes missing updates of masks with the new dependency graph
in a way which is safe for backport into master branch.

Compositor nodes will not receive needed update callback yet, this will
be solved after mask and compositor are becoming a proper node in the
graph, it is considered a TODO now.
This commit is contained in:
Sergey Sharybin 2015-06-15 13:39:38 +02:00
parent 0fa5c0df74
commit 626a78607c
Notes: blender-bot 2023-02-14 09:00:25 +01:00
Referenced by issue #45052, Compositing-Masks are not editable with new DepsGraph
1 changed files with 7 additions and 6 deletions

View File

@ -1730,15 +1730,16 @@ void BKE_scene_update_tagged(EvaluationContext *eval_ctx, Main *bmain, Scene *sc
* in the future this should handle updates for all datablocks, not
* only objects and scenes. - brecht */
#ifdef WITH_LEGACY_DEPSGRAPH
if (use_new_eval) {
DEG_evaluate_on_refresh(eval_ctx, scene->depsgraph, scene);
}
else {
if (!use_new_eval) {
scene_update_tagged_recursive(eval_ctx, bmain, scene, scene);
}
#else
DEG_evaluate_on_refresh(eval_ctx, scene->depsgraph, scene);
else
#endif
{
DEG_evaluate_on_refresh(eval_ctx, scene->depsgraph, scene);
/* TODO(sergey): This is to beocme a node in new depsgraph. */
BKE_mask_update_scene(bmain, scene);
}
/* update sound system animation (TODO, move to depsgraph) */
BKE_sound_update_scene(bmain, scene);