diff options
author | Bastien Montagne <bastien@blender.org> | 2020-07-13 17:44:41 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-07-13 17:45:55 +0300 |
commit | 3d587efef2872a4466432679bad0c8bc6cc0a335 (patch) | |
tree | 4d7aecd930ce2f195f8d26c14eac5bb5e2ad7076 /source/blender/editors/object/object_relations.c | |
parent | 5c8dd2a703b5e18c179148f1b8fab6baeee3e7c0 (diff) |
LibOverride: Cleanup: Remove option to disable library overrides.
Code is mature enough now to not need this anymore, people who do not
want to use liboverrides can just not create them.
Diffstat (limited to 'source/blender/editors/object/object_relations.c')
-rw-r--r-- | source/blender/editors/object/object_relations.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index ac41028089c..b81fea1848c 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -2523,7 +2523,7 @@ static bool make_override_library_poll(bContext *C) Object *obact = CTX_data_active_object(C); /* Object must be directly linked to be overridable. */ - return (BKE_lib_override_library_is_enabled() && ED_operator_objectmode(C) && obact != NULL && + return (ED_operator_objectmode(C) && obact != NULL && ((ID_IS_LINKED(obact) && obact->id.tag & LIB_TAG_EXTERN) || (!ID_IS_LINKED(obact) && obact->instance_collection != NULL && ID_IS_LINKED(obact->instance_collection)))); |