Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/depsgraph/DEG_depsgraph_build.h')
-rw-r--r--source/blender/depsgraph/DEG_depsgraph_build.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph_build.h b/source/blender/depsgraph/DEG_depsgraph_build.h
index ce30df29e26..98ccce7e34e 100644
--- a/source/blender/depsgraph/DEG_depsgraph_build.h
+++ b/source/blender/depsgraph/DEG_depsgraph_build.h
@@ -81,6 +81,7 @@ void DEG_scene_graph_free(struct Scene *scene);
* as a symbolic reference to the current DepsNode.
* All relations will be defined in reference to that node.
*/
+struct CacheFile;
typedef enum {
DEG_COMPONENT_PARAMETERS, /* Parameters Component - Default when nothing else fits (i.e. just SDNA property setting) */
@@ -93,6 +94,7 @@ typedef enum {
DEG_COMPONENT_BONE, /* Bone Component - Child/Subcomponent of Pose */
DEG_COMPONENT_EVAL_PARTICLES, /* Particle Systems Component */
DEG_COMPONENT_SHADING, /* Material Shading Component */
+ DEG_COMPONENT_CACHE, /* Cache Component */
} eDepsComponent;
struct DepsNodeHandle
@@ -122,6 +124,10 @@ struct DepsNodeHandle
struct Image *ima,
eDepsComponent component,
const char *description);
+ void (*add_cache_relation)(struct DepsNodeHandle *handle,
+ struct CacheFile *cache_file,
+ eDepsComponent component,
+ const char *description);
};
void DEG_add_scene_relation(struct DepsNodeHandle *node,
@@ -149,6 +155,10 @@ void DEG_add_image_relation(struct DepsNodeHandle *handle,
struct Image *ima,
eDepsComponent component,
const char *description);
+void DEG_add_cache_relation(struct DepsNodeHandle *handle,
+ struct CacheFile *cache_file,
+ eDepsComponent component,
+ const char *description);
/* TODO(sergey): Remove once all geometry update is granular. */
void DEG_add_special_eval_flag(struct Depsgraph *graph, struct ID *id, short flag);