Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2022-05-24 16:03:04 +0300
committerBastien Montagne <bastien@blender.org>2022-05-24 16:03:04 +0300
commita40a26906213c2730c8b2efd9a509e18c7821e87 (patch)
tree06cf36fbfad4ab65b260fac23683113dffbbd9e4 /source/blender/editors/interface/interface_templates.c
parent10aa2fa9026067ad489197bcb43337d714c07cab (diff)
Fix (studio-reported) bad re-assigning of new liboverride from ID template widget.
Shift-click on the 'linked' button in an ID template widget would fail to properly remap that usage of the linked ID to the newly created liboverride.
Diffstat (limited to 'source/blender/editors/interface/interface_templates.c')
-rw-r--r--source/blender/editors/interface/interface_templates.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index 4e6437e043a..c6e5deb314e 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -812,8 +812,11 @@ static void template_id_liboverride_hierarchy_create(bContext *C,
id_override->override_library->flag &= ~IDOVERRIDE_LIBRARY_FLAG_SYSTEM_DEFINED;
*r_undo_push_label = "Make Library Override Hierarchy";
- WM_event_add_notifier(C, NC_WINDOW, NULL);
- DEG_relations_tag_update(bmain);
+ /* Given `idptr` is re-assigned to owner property by caller to ensure proper updates etc. Here
+ * we also use it to ensure remapping of the owner property from the linked data to the newly
+ * created liboverride (note that in theory this remapping has already been done by code
+ * above). */
+ RNA_id_pointer_create(id_override, idptr);
}
}