diff options
author | Bastien Montagne <bastien@blender.org> | 2022-02-25 14:15:56 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-02-25 14:18:48 +0300 |
commit | 1a853a9e90e9f1a8a5028bd1ce37785e1b2ce6d5 (patch) | |
tree | 1089f60cb49c683abf52b128f4991b6f3693292c /source/blender/editors/object/object_relations.c | |
parent | 5db32ab5fc770751d5966311172f50f0572070cf (diff) |
LibOverrides: fix handling of hierarchy root in complex cases.
This affects essentially the Outliner 'create hierarchy' tool currenlty.
Previously code did not handle properly hierarchy root in case overrides
where created from a non-root ID (e.g. an object inside of a linked
collection), and in case additional partial overrides were added to an
existing partially overrided hierarchy.
Also did some renaming on the go to avoid using 'reference' in override
context for anything else but the reference linked IDs.
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 1204a57d59f..3ecf86d14ed 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -2318,7 +2318,7 @@ static int make_override_library_exec(bContext *C, wmOperator *op) BKE_main_id_tag_all(bmain, LIB_TAG_DOIT, false); const bool success = BKE_lib_override_library_create( - bmain, scene, view_layer, NULL, id_root, &obact->id, NULL); + bmain, scene, view_layer, NULL, id_root, id_root, &obact->id, NULL); /* Remove the instance empty from this scene, the items now have an overridden collection * instead. */ |