From fbf4c11960db62a27876e1d791d3293071e26c76 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 19 Oct 2018 16:42:42 +0200 Subject: 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. --- source/blender/makesrna/intern/rna_access.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/makesrna/intern/rna_access.c') diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index a105e205a2e..b05a6bd6c1d 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -7976,6 +7976,10 @@ eRNAOverrideStatus RNA_property_static_override_status(PointerRNA *ptr, Property { int override_status = 0; + if (!BKE_override_static_is_enabled()) { + return override_status; + } + if (!ptr || !prop || !ptr->id.data || !((ID *)ptr->id.data)->override_static) { return override_status; } -- cgit v1.2.3