Fix #105968: Crash when delete linked object in scenes Outliner #118458

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:105968 into blender-v4.1-release 2024-02-19 15:18:27 +01:00
1 changed files with 1 additions and 0 deletions

View File

@ -324,6 +324,7 @@ static void tree_element_object_activate(bContext *C,
sce = (Scene *)outliner_search_back(te, ID_SCE);
if (sce && scene != sce) {
WM_window_set_active_scene(CTX_data_main(C), C, CTX_wm_window(C), sce);
view_layer = WM_window_get_active_view_layer(CTX_wm_window(C));
scene = sce;
}