Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
| Show First 20 Lines • Show All 1,228 Lines • ▼ Show 20 Lines | |||||
| void DepsgraphRelationBuilder::build_animdata(ID *id) | void DepsgraphRelationBuilder::build_animdata(ID *id) | ||||
| { | { | ||||
| /* Images. */ | /* Images. */ | ||||
| build_animation_images(id); | build_animation_images(id); | ||||
| /* Animation curves and NLA. */ | /* Animation curves and NLA. */ | ||||
| build_animdata_curves(id); | build_animdata_curves(id); | ||||
| /* Drivers. */ | /* Drivers. */ | ||||
| build_animdata_drivers(id); | build_animdata_drivers(id); | ||||
| if (check_id_has_anim_component(id)) { | |||||
| ComponentKey animation_key(id, NodeType::ANIMATION); | |||||
| ComponentKey parameters_key(id, NodeType::PARAMETERS); | |||||
sergey: Think you'll have a lot of warning messages in the terminal for objects which does not have… | |||||
| add_relation(animation_key, parameters_key, "Animation -> Parameters"); | |||||
| } | |||||
| } | } | ||||
| void DepsgraphRelationBuilder::build_animdata_curves(ID *id) | void DepsgraphRelationBuilder::build_animdata_curves(ID *id) | ||||
| { | { | ||||
| AnimData *adt = BKE_animdata_from_id(id); | AnimData *adt = BKE_animdata_from_id(id); | ||||
| if (adt == nullptr) { | if (adt == nullptr) { | ||||
| return; | return; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,693 Lines • Show Last 20 Lines | |||||
Think you'll have a lot of warning messages in the terminal for objects which does not have animation, or objects which have adt but no action.
After deeper look seems that we should either: