diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-20 12:01:43 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-20 12:02:21 +0300 |
commit | 3b100c5a2a78b196eb7fe6fb559c1e5ea0c47e66 (patch) | |
tree | 70966c9ceb09539b38cc49a497b0190b0068a79e /source/blender/depsgraph/DEG_depsgraph_query.h | |
parent | bf63fee23efad5f321ad16e9e90290e8879cb614 (diff) |
Depsgraph: Add utility functions to go from evaluated to original datablock
Diffstat (limited to 'source/blender/depsgraph/DEG_depsgraph_query.h')
-rw-r--r-- | source/blender/depsgraph/DEG_depsgraph_query.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph_query.h b/source/blender/depsgraph/DEG_depsgraph_query.h index 902a2ea3981..508714db218 100644 --- a/source/blender/depsgraph/DEG_depsgraph_query.h +++ b/source/blender/depsgraph/DEG_depsgraph_query.h @@ -85,6 +85,13 @@ struct Object *DEG_get_evaluated_object(const struct Depsgraph *depsgraph, struct ID *DEG_get_evaluated_id(const struct Depsgraph *depsgraph, struct ID *id); + +/* Get original version of object for given evaluated one. */ +struct Object *DEG_get_original_object(struct Object *object); + +/* Get original version of given evaluated ID datablock. */ +struct ID *DEG_get_original_id(struct ID *id); + /* ************************ DEG iterators ********************* */ enum { |