Fix T64595: Mask does not update correctly when changing frames
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 17 May 2019 13:48:01 +0000 (15:48 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 17 May 2019 13:48:01 +0000 (15:48 +0200)
Is caused by change which made all IDs to have parameters.

Solved by using more explicit relations.

source/blender/depsgraph/intern/builder/deg_builder_relations.cc

index c7a728f..515adab 100644 (file)
@@ -2269,8 +2269,8 @@ void DepsgraphRelationBuilder::build_mask(Mask *mask)
   TimeSourceKey time_src_key;
   add_relation(time_src_key, mask_animation_key, "TimeSrc -> Mask Animation");
   /* Final mask evaluation. */
-  ComponentKey parameters_key(mask_id, NodeType::PARAMETERS);
-  add_relation(mask_animation_key, parameters_key, "Mask Animation -> Mask Eval");
+  OperationKey mask_eval_key(mask_id, NodeType::PARAMETERS, OperationCode::MASK_EVAL);
+  add_relation(mask_animation_key, mask_eval_key, "Mask Animation -> Mask Eval");
 }
 
 void DepsgraphRelationBuilder::build_movieclip(MovieClip *clip)