diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-04-29 05:36:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-04-29 05:36:33 +0300 |
commit | 21ef8c4d44f4a533d20611556adbf8750e3cf849 (patch) | |
tree | b37017aab7c334bf40a1be4e8397b00a137c9067 /source/blender/depsgraph/DEG_depsgraph_query.h | |
parent | af835ee6f873c2aa42d7373b7affcb1aeed0c6cf (diff) |
Cleanup: use const args for depsgraph functions
Diffstat (limited to 'source/blender/depsgraph/DEG_depsgraph_query.h')
-rw-r--r-- | source/blender/depsgraph/DEG_depsgraph_query.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph_query.h b/source/blender/depsgraph/DEG_depsgraph_query.h index 26b46376a0a..3d570536223 100644 --- a/source/blender/depsgraph/DEG_depsgraph_query.h +++ b/source/blender/depsgraph/DEG_depsgraph_query.h @@ -111,14 +111,14 @@ struct ID *DEG_get_original_id(struct ID *id); * * Original IDs are considered all the IDs which are not covered by copy-on-write system and are * not out-of-main localized data-blocks. */ -bool DEG_is_original_id(struct ID *id); -bool DEG_is_original_object(struct Object *object); +bool DEG_is_original_id(const struct ID *id); +bool DEG_is_original_object(const struct Object *object); /* Opposite of the above. * * If the data-block is not original it must be evaluated, and vice versa. */ -bool DEG_is_evaluated_id(struct ID *id); -bool DEG_is_evaluated_object(struct Object *object); +bool DEG_is_evaluated_id(const struct ID *id); +bool DEG_is_evaluated_object(const struct Object *object); /* Check whether depsgraph os fully evaluated. This includes the following checks: * - Relations are up-to-date. |