Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
| Show First 20 Lines • Show All 2,323 Lines • ▼ Show 20 Lines | void DepsgraphRelationBuilder::build_mask(Mask *mask) | ||||
| build_parameters(mask_id); | build_parameters(mask_id); | ||||
| /* Own mask animation. */ | /* Own mask animation. */ | ||||
| OperationKey mask_animation_key(mask_id, NodeType::ANIMATION, OperationCode::MASK_ANIMATION); | OperationKey mask_animation_key(mask_id, NodeType::ANIMATION, OperationCode::MASK_ANIMATION); | ||||
| TimeSourceKey time_src_key; | TimeSourceKey time_src_key; | ||||
| add_relation(time_src_key, mask_animation_key, "TimeSrc -> Mask Animation"); | add_relation(time_src_key, mask_animation_key, "TimeSrc -> Mask Animation"); | ||||
| /* Final mask evaluation. */ | /* Final mask evaluation. */ | ||||
| OperationKey mask_eval_key(mask_id, NodeType::PARAMETERS, OperationCode::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"); | add_relation(mask_animation_key, mask_eval_key, "Mask Animation -> Mask Eval"); | ||||
| /* Build parents. */ | |||||
| LISTBASE_FOREACH (MaskLayer *, mask_layer, &mask->masklayers) { | |||||
| LISTBASE_FOREACH (MaskSpline *, spline, &mask_layer->splines) { | |||||
| for (int i = 0; i < spline->tot_point; i++) { | |||||
| MaskSplinePoint *point = &spline->points[i]; | |||||
| MaskParent *parent = &point->parent; | |||||
| if (parent == NULL || parent->id == NULL) { | |||||
| continue; | |||||
| } | |||||
| build_id(parent->id); | |||||
| if (parent->id_type == ID_MC) { | |||||
| OperationKey movieclip_eval_key( | |||||
| parent->id, NodeType::PARAMETERS, OperationCode::MOVIECLIP_EVAL); | |||||
brecht: Should this be `ID_MSK` -> `ID_MC` and `mask_id` -> `parent->id`?
Not sure how else a movie… | |||||
| add_relation(movieclip_eval_key, mask_eval_key, "Movie Clip -> Mask Eval"); | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||
| void DepsgraphRelationBuilder::build_movieclip(MovieClip *clip) | void DepsgraphRelationBuilder::build_movieclip(MovieClip *clip) | ||||
| { | { | ||||
| if (built_map_.checkIsBuiltAndTag(clip)) { | if (built_map_.checkIsBuiltAndTag(clip)) { | ||||
| return; | return; | ||||
| } | } | ||||
| /* Animation. */ | /* Animation. */ | ||||
| ▲ Show 20 Lines • Show All 270 Lines • Show Last 20 Lines | |||||
Should this be ID_MSK -> ID_MC and mask_id -> parent->id?
Not sure how else a movie clip is used here.