Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_collections.c
| Show First 20 Lines • Show All 653 Lines • ▼ Show 20 Lines | GSET_ITER(collections_to_delete_iter, data.collections_to_delete) { | ||||
| SceneCollection *sc = BLI_gsetIterator_getKey(&collections_to_delete_iter); | SceneCollection *sc = BLI_gsetIterator_getKey(&collections_to_delete_iter); | ||||
| BKE_collection_remove(&data.scene->id, sc); | BKE_collection_remove(&data.scene->id, sc); | ||||
| } | } | ||||
| BLI_gset_free(data.collections_to_delete, NULL); | BLI_gset_free(data.collections_to_delete, NULL); | ||||
| /* Rebuild the outliner tree before we select the tree element */ | /* Rebuild the outliner tree before we select the tree element */ | ||||
| outliner_build_tree(bmain, scene, view_layer, soops); | outliner_build_tree(bmain, scene, view_layer, soops, CTX_wm_area(C)); | ||||
| TreeElement *select_te = outliner_tree_element_from_layer_collection(C); | TreeElement *select_te = outliner_tree_element_from_layer_collection(C); | ||||
| if (select_te) { | if (select_te) { | ||||
| outliner_item_select(soops, select_te, false, false); | outliner_item_select(soops, select_te, false, false); | ||||
| } | } | ||||
| DEG_relations_tag_update(CTX_data_main(C)); | DEG_relations_tag_update(CTX_data_main(C)); | ||||
| ▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines | |||||