LibOverride: Enable them in UI by default.

This is minimal 'flip-switch' commit, proper cleanup and removal of the
option thing will happen later, once we are sure that we can release
2.81 with it enabled.

For now, we have a `--disable-library-override` now. ;)
This commit is contained in:
Bastien Montagne 2019-09-11 15:16:05 +02:00
parent e0ca19152f
commit fc16cf8d2d
2 changed files with 7 additions and 7 deletions

View File

@ -57,7 +57,7 @@ static void bke_override_property_operation_clear(IDOverrideLibraryPropertyOpera
/* Temp, for until library override is ready and tested enough to go 'public',
* we hide it by default in UI and such. */
static bool _override_library_enabled = false;
static bool _override_library_enabled = true;
void BKE_override_library_enable(const bool do_enable)
{

View File

@ -1109,14 +1109,14 @@ static int arg_handle_factory_startup_set(int UNUSED(argc),
return 0;
}
static const char arg_handle_enable_override_library_doc[] =
static const char arg_handle_disable_override_library_doc[] =
"\n\t"
"Enable Library Override features in the UI.";
static int arg_handle_enable_override_library(int UNUSED(argc),
const char **UNUSED(argv),
void *UNUSED(data))
static int arg_handle_disable_override_library(int UNUSED(argc),
const char **UNUSED(argv),
void *UNUSED(data))
{
BKE_override_library_enable(true);
BKE_override_library_enable(false);
return 0;
}
@ -2174,7 +2174,7 @@ void main_args_setup(bContext *C, bArgs *ba)
BLI_argsAdd(ba, 1, NULL, "--app-template", CB(arg_handle_app_template), NULL);
BLI_argsAdd(ba, 1, NULL, "--factory-startup", CB(arg_handle_factory_startup_set), NULL);
BLI_argsAdd(
ba, 1, NULL, "--enable-library-override", CB(arg_handle_enable_override_library), NULL);
ba, 1, NULL, "--disable-library-override", CB(arg_handle_disable_override_library), NULL);
BLI_argsAdd(ba, 1, NULL, "--enable-event-simulate", CB(arg_handle_enable_event_simulate), NULL);
/* TODO, add user env vars? */