[Bf-blender-cvs] [eb54624a9a1] master: LibOverride: make outliner's 'override hierarchy' use same logic as 3DView operator.

Bastien Montagne noreply at git.blender.org
Wed Jul 15 18:17:40 CEST 2020


Commit: eb54624a9a1dcfe93eec8bc98db0c0bbcccc1732
Author: Bastien Montagne
Date:   Wed Jul 15 18:10:55 2020 +0200
Branches: master
https://developer.blender.org/rBeb54624a9a1dcfe93eec8bc98db0c0bbcccc1732

LibOverride: make outliner's 'override hierarchy' use same logic as 3DView operator.

So now one can create a 'full', 'complete' override of a character from
the outliner as well.

===================================================================

M	source/blender/editors/space_outliner/outliner_tools.c

===================================================================

diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index de6f169e574..b59cd5bc128 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -786,8 +786,8 @@ static void id_override_library_cb(bContext *C,
         }
         te->store_elem->id->tag |= LIB_TAG_DOIT;
       }
-      BKE_lib_override_library_dependencies_tag(bmain, id_root, LIB_TAG_DOIT, true);
-      BKE_lib_override_library_create_from_tag(bmain);
+      BKE_lib_override_library_create(
+          bmain, CTX_data_scene(C), CTX_data_view_layer(C), id_root, NULL);
     }
     else if (ID_IS_OVERRIDABLE_LIBRARY(id_root)) {
       BKE_lib_override_library_create_from_id(bmain, id_root, true);



More information about the Bf-blender-cvs mailing list