diff options
author | Julian Eisel <julian@blender.org> | 2020-06-13 23:54:07 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-06-13 23:54:07 +0300 |
commit | 5e50380ddc99dd8c8c8067482b2dce186e7c3fb4 (patch) | |
tree | 7e5f438a3a30996351a7ee256ffd144e2dab45ad /source/blender/editors/object | |
parent | 15e6f9012c84c4ebce41bf1928635a3abe046a55 (diff) | |
parent | 23d0361b30da481ffe71142d4efd336dfb1f27f2 (diff) |
Merge branch 'master' into asset-uuid
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_constraint.c | 2 | ||||
-rw-r--r-- | source/blender/editors/object/object_relations.c | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index 1e04355c9a7..a2d33ffe413 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -678,7 +678,7 @@ static bool edit_constraint_poll_generic(bContext *C, StructRNA *rna_type) return 0; } - if (ID_IS_OVERRIDE_LIBRARY(ob)) { + if (ID_IS_OVERRIDE_LIBRARY(ob) && ptr.data != NULL) { CTX_wm_operator_poll_msg_set(C, "Cannot edit constraints coming from library override"); return (((bConstraint *)ptr.data)->flag & CONSTRAINT_OVERRIDE_LIBRARY_LOCAL) != 0; } diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index eed3f2ea90c..fd2fcb11635 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -2400,10 +2400,6 @@ static int make_override_library_exec(bContext *C, wmOperator *op) /* TODO: is setting active needed? */ BKE_view_layer_base_select_and_set_active(view_layer, base); } - else { - /* Disable auto-override tags for non-active objects, will help with performaces... */ - new_ob->id.override_library->flag &= ~OVERRIDE_LIBRARY_AUTO; - } /* We still want to store all objects' current override status (i.e. change of parent). */ BKE_lib_override_library_operations_create(bmain, &new_ob->id, true); } |