Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
| Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "DNA_speaker_types.h" | #include "DNA_speaker_types.h" | ||||
| #include "DNA_texture_types.h" | #include "DNA_texture_types.h" | ||||
| #include "DNA_world_types.h" | #include "DNA_world_types.h" | ||||
| #include "BKE_action.h" | #include "BKE_action.h" | ||||
| #include "BKE_armature.h" | #include "BKE_armature.h" | ||||
| #include "BKE_animsys.h" | #include "BKE_animsys.h" | ||||
| #include "BKE_cachefile.h" | |||||
| #include "BKE_collection.h" | #include "BKE_collection.h" | ||||
| #include "BKE_constraint.h" | #include "BKE_constraint.h" | ||||
| #include "BKE_curve.h" | #include "BKE_curve.h" | ||||
| #include "BKE_effect.h" | #include "BKE_effect.h" | ||||
| #include "BKE_fcurve.h" | #include "BKE_fcurve.h" | ||||
| #include "BKE_gpencil.h" | #include "BKE_gpencil.h" | ||||
| #include "BKE_gpencil_modifier.h" | #include "BKE_gpencil_modifier.h" | ||||
| #include "BKE_idcode.h" | #include "BKE_idcode.h" | ||||
| ▲ Show 20 Lines • Show All 1,388 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| void DepsgraphNodeBuilder::build_cachefile(CacheFile *cache_file) | void DepsgraphNodeBuilder::build_cachefile(CacheFile *cache_file) | ||||
| { | { | ||||
| if (built_map_.checkIsBuiltAndTag(cache_file)) { | if (built_map_.checkIsBuiltAndTag(cache_file)) { | ||||
| return; | return; | ||||
| } | } | ||||
| ID *cache_file_id = &cache_file->id; | ID *cache_file_id = &cache_file->id; | ||||
| add_id_node(cache_file_id); | |||||
| CacheFile *cache_file_cow = get_cow_datablock(cache_file); | |||||
| /* Animation, */ | /* Animation, */ | ||||
| build_animdata(cache_file_id); | build_animdata(cache_file_id); | ||||
| build_parameters(cache_file_id); | build_parameters(cache_file_id); | ||||
| /* Cache evaluation itself. */ | /* Cache evaluation itself. */ | ||||
| add_operation_node(cache_file_id, NodeType::CACHE, OperationCode::FILE_CACHE_UPDATE); | add_operation_node(cache_file_id, | ||||
| NodeType::CACHE, | |||||
| OperationCode::FILE_CACHE_UPDATE, | |||||
| function_bind(BKE_cachefile_eval, bmain_, _1, cache_file_cow)); | |||||
| } | } | ||||
| void DepsgraphNodeBuilder::build_mask(Mask *mask) | void DepsgraphNodeBuilder::build_mask(Mask *mask) | ||||
| { | { | ||||
| if (built_map_.checkIsBuiltAndTag(mask)) { | if (built_map_.checkIsBuiltAndTag(mask)) { | ||||
| return; | return; | ||||
| } | } | ||||
| ID *mask_id = &mask->id; | ID *mask_id = &mask->id; | ||||
| ▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines | |||||