Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
| Show First 20 Lines • Show All 1,460 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (FCurve *, fcu, &adt->drivers) { | ||||
| if (adt->action || adt->nla_tracks.first) { | if (adt->action || adt->nla_tracks.first) { | ||||
| add_relation(adt_key, driver_key, "AnimData Before Drivers"); | add_relation(adt_key, driver_key, "AnimData Before Drivers"); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| void DepsgraphRelationBuilder::build_animation_images(ID *id) | void DepsgraphRelationBuilder::build_animation_images(ID *id) | ||||
| { | { | ||||
| /* See #DepsgraphNodeBuilder::build_animation_images. */ | |||||
| const bool can_have_gpu_material = ELEM(GS(id->name), ID_MA, ID_WO); | |||||
| /* TODO: can we check for existence of node for performance? */ | /* TODO: can we check for existence of node for performance? */ | ||||
| if (BKE_image_user_id_has_animation(id)) { | if (BKE_image_user_id_has_animation(id) || can_have_gpu_material) { | ||||
| OperationKey image_animation_key( | OperationKey image_animation_key( | ||||
| id, NodeType::IMAGE_ANIMATION, OperationCode::IMAGE_ANIMATION); | id, NodeType::IMAGE_ANIMATION, OperationCode::IMAGE_ANIMATION); | ||||
| TimeSourceKey time_src_key; | TimeSourceKey time_src_key; | ||||
| add_relation(time_src_key, image_animation_key, "TimeSrc -> Image Animation"); | add_relation(time_src_key, image_animation_key, "TimeSrc -> Image Animation"); | ||||
| } | } | ||||
| } | } | ||||
| void DepsgraphRelationBuilder::build_animdata_force(ID *id) | void DepsgraphRelationBuilder::build_animdata_force(ID *id) | ||||
| ▲ Show 20 Lines • Show All 1,599 Lines • Show Last 20 Lines | |||||