diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-05-05 17:13:01 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-05-05 17:19:16 +0300 |
commit | 198248fa3d3530e8d84967c7fa8a8d3b1a1c8214 (patch) | |
tree | 3b0461e78947c3356f59c890524daa1522e3572f /source/blender/blenkernel/BKE_library_query.h | |
parent | 294ffa0d493c9a3f232355941cdb2dfe0da7706e (diff) |
Add a new LOOPBACK flag to libquery's callbacks.
That one tags those ugly little 'from' ID pointers (shape keys and
proxies), which point back from used to user ID, and require a lot of
special care in data-block management...
Diffstat (limited to 'source/blender/blenkernel/BKE_library_query.h')
-rw-r--r-- | source/blender/blenkernel/BKE_library_query.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_library_query.h b/source/blender/blenkernel/BKE_library_query.h index 68bf9f43fe1..6cf18e28e17 100644 --- a/source/blender/blenkernel/BKE_library_query.h +++ b/source/blender/blenkernel/BKE_library_query.h @@ -51,6 +51,11 @@ enum { * This means callback shall not *do* anything, only use this as informative data if it needs it. */ IDWALK_CB_PRIVATE = (1 << 3), + /** That ID is not really used by its owner, it's just an internal hint/helper. + * This addresses Their Highest Ugliness the 'from' pointers: Object->from_proxy and Key->from. + * How to handle that kind of cases totally depends on what caller code is doing... */ + IDWALK_CB_LOOPBACK = (1 << 4), + /** * Adjusts #ID.us reference-count. * \note keep in sync with 'newlibadr_us' use in readfile.c |