From 1ba6ef25b64af4f399134faae3f9c4d7bca29dab Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 12 Jun 2017 14:41:46 +0200 Subject: Depsgraph: Add utility function to get depsgraph from node handle The idea is to use this function for modifiers' updateDepsgraph functions instead of doing direct scene->depsgraph access. --- source/blender/depsgraph/DEG_depsgraph_build.h | 2 ++ 1 file changed, 2 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 d44aea153bc..b65d921cfd1 100644 --- a/source/blender/depsgraph/DEG_depsgraph_build.h +++ b/source/blender/depsgraph/DEG_depsgraph_build.h @@ -153,6 +153,8 @@ void DEG_add_object_cache_relation(struct DepsNodeHandle *handle, eDepsObjectComponentType component, const char *description); + +struct Depsgraph *DEG_get_graph_from_handle(struct DepsNodeHandle *handle); void DEG_add_special_eval_flag(struct Depsgraph *graph, struct ID *id, short flag); /* Utility functions for physics modifiers */ -- cgit v1.2.3