From 0cf0cc9873c114f3ccc19901931616a0e91f27cb Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 28 May 2019 15:42:08 +0200 Subject: Depsgraph: Add query for whether graph is up to date --- source/blender/depsgraph/DEG_depsgraph_query.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/depsgraph/DEG_depsgraph_query.h') diff --git a/source/blender/depsgraph/DEG_depsgraph_query.h b/source/blender/depsgraph/DEG_depsgraph_query.h index 9b7e5b95fdc..b9cbd75ce1e 100644 --- a/source/blender/depsgraph/DEG_depsgraph_query.h +++ b/source/blender/depsgraph/DEG_depsgraph_query.h @@ -116,6 +116,11 @@ bool DEG_is_original_object(struct Object *object); bool DEG_is_evaluated_id(struct ID *id); bool DEG_is_evaluated_object(struct Object *object); +/* Check whether depsgraph os fully evaluated. This includes the following checks: + * - Relations are up-to-date. + * - Nothing is tagged for update. */ +bool DEG_is_fully_evaluated(const struct Depsgraph *depsgraph); + /* ************************ DEG object iterators ********************* */ enum { -- cgit v1.2.3