Blender Git Loki
Git Commits -> Revision 734f7b1
Revision 734f7b1 by Julian Eisel (temp-asset-browser-catalogs-ui) September 23, 2021, 09:59 (GMT) |
Support deleting catalogs from the UI Adds a 'x' icon to catalogs to delete them (including children, if any). There's no undo/redo for editing catalogs yet (since they are not stored in .blend files), so deleting a catalog is a destructive action. Therefore we show a confirmation popup. Only catalog tree-items in the UI that represent an actual catalog can be deleted for now. With T91451 done, this will change (every item visible will be an actual catalog, so you'll be able to delete each). |
Commit Details:
Full Hash: 734f7b1b4dd9ff47c42e629f0c4631c3b4d53709
Parent Commit: 392b67a
Lines Changed: +114, -17
9 Modified Paths:
/source/blender/blenkernel/intern/asset_catalog.cc (+18, -8) (Diff)
/source/blender/editors/asset/ED_asset_catalog.hh (+2, -0) (Diff)
/source/blender/editors/asset/intern/asset_catalog.cc (+9, -0) (Diff)
/source/blender/editors/asset/intern/asset_ops.cc (+42, -2) (Diff)
/source/blender/editors/include/UI_interface.h (+2, -1) (Diff)
/source/blender/editors/include/UI_tree_view.hh (+1, -0) (Diff)
/source/blender/editors/interface/interface.c (+9, -0) (Diff)
/source/blender/editors/interface/tree_view.cc (+15, -3) (Diff)
/source/blender/editors/space_file/asset_catalog_tree_view.cc (+16, -3) (Diff)
/source/blender/editors/asset/ED_asset_catalog.hh (+2, -0) (Diff)
/source/blender/editors/asset/intern/asset_catalog.cc (+9, -0) (Diff)
/source/blender/editors/asset/intern/asset_ops.cc (+42, -2) (Diff)
/source/blender/editors/include/UI_interface.h (+2, -1) (Diff)
/source/blender/editors/include/UI_tree_view.hh (+1, -0) (Diff)
/source/blender/editors/interface/interface.c (+9, -0) (Diff)
/source/blender/editors/interface/tree_view.cc (+15, -3) (Diff)
/source/blender/editors/space_file/asset_catalog_tree_view.cc (+16, -3) (Diff)