From cd48d4576bab3bf8d78c686433975cfee944f292 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sun, 14 Oct 2018 19:59:27 +0300 Subject: Depsgraph: Add proper API functions for CustomDataMask dependencies. There were a few copies of the same few lines in depsgraph build code, so it seems to be logical to introduce a function for it, and make it accessible from C code for completeness. As an example, register the mask needs of the Data Transfer modifier. --- source/blender/depsgraph/DEG_depsgraph_build.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/depsgraph/DEG_depsgraph_build.h') diff --git a/source/blender/depsgraph/DEG_depsgraph_build.h b/source/blender/depsgraph/DEG_depsgraph_build.h index 24850c45d3a..4975f18f4ce 100644 --- a/source/blender/depsgraph/DEG_depsgraph_build.h +++ b/source/blender/depsgraph/DEG_depsgraph_build.h @@ -53,6 +53,8 @@ struct ViewLayer; extern "C" { #endif +#include "BLI_sys_types.h" + /* Graph Building -------------------------------- */ /* Build depsgraph for the given scene, and dump results in given @@ -139,6 +141,11 @@ void DEG_add_object_relation(struct DepsNodeHandle *node, struct Object *object, eDepsObjectComponentType component, const char *description); +void DEG_add_object_customdata_relation(struct DepsNodeHandle *node, + struct Object *object, + eDepsObjectComponentType component, + uint64_t customdata_mask, + const char *description); void DEG_add_bone_relation(struct DepsNodeHandle *handle, struct Object *object, const char *bone_name, -- cgit v1.2.3