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>2020-10-21 17:58:06 +0300
committerBastien Montagne <bastien@blender.org>2020-10-21 17:59:11 +0300
commit62528677bf5d1feadeb8a6020922de3b59e8cbb2 (patch)
treeb64c368967363fb8d777b0d6167c2955536122b3 /source/blender/editors
parent959a06b8ffdfe7eb28721c6ec559354825819058 (diff)
Fix 'Make Local' operation to support liboverrides.
One can now use 'make local' from the Outliner or the 3DView to also fully localize overrides of linked data.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_outliner/outliner_tools.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index 3357b0b7346..cbdeb350ba4 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -730,6 +730,9 @@ static void id_local_fn(bContext *C,
BKE_main_id_clear_newpoins(bmain);
}
}
+ else if (ID_IS_OVERRIDE_LIBRARY_REAL(tselem->id)) {
+ BKE_lib_override_library_free(&tselem->id->override_library, true);
+ }
}
static void object_proxy_to_override_convert_fn(bContext *C,