diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-10-19 17:42:42 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-10-19 19:38:19 +0300 |
commit | fbf4c11960db62a27876e1d791d3293071e26c76 (patch) | |
tree | 8b51aa88f16ba18884b3d9120636f66052474a8e /source/blender/blenkernel/BKE_library_override.h | |
parent | e6fe207a52b1d3f46f02c3d01973ae501c97ba49 (diff) |
Make Static Override optional/hidden by default.
That feature will not be ready (or at least, not tested enough) to be
officially part of 2.80 beta. So we disable it by default, hidding it
behind a startup option (`--enable-static-override`), and a python
app var (`bpy.app.use_static_override`).
That way, people who really want to play with it can do it easily, while
not exposing/enabling non-production-ready feature by default.
Note that underlying override code remains active, i.e. files we do have
overridden data-blocks will be loaded correctly according to static override.
Diffstat (limited to 'source/blender/blenkernel/BKE_library_override.h')
-rw-r--r-- | source/blender/blenkernel/BKE_library_override.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_library_override.h b/source/blender/blenkernel/BKE_library_override.h index 4792d203d23..b6642bfa726 100644 --- a/source/blender/blenkernel/BKE_library_override.h +++ b/source/blender/blenkernel/BKE_library_override.h @@ -38,6 +38,9 @@ struct IDOverrideStaticProperty; struct IDOverrideStaticPropertyOperation; struct Main; +void BKE_override_static_enable(const bool do_enable); +bool BKE_override_static_is_enabled(void); + struct IDOverrideStatic *BKE_override_static_init(struct ID *local_id, struct ID *reference_id); void BKE_override_static_copy(struct ID *dst_id, const struct ID *src_id); void BKE_override_static_clear(struct IDOverrideStatic *override); |