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:
authorJulian Eisel <julian@blender.org>2021-10-12 16:49:57 +0300
committerJulian Eisel <julian@blender.org>2021-10-12 16:49:57 +0300
commit30cd1d10a95a5e32b9e0daf1a24c41123f262c96 (patch)
tree967e94926de17de7a271f83a853f39a699af674e
parentb7b2103cf731d4645f19fdb06ed511056594fda8 (diff)
Asset Browser: Remove catalog deletion confirm prompt
This confirmation popup was added when deletion was a destructive action that would be written to disk immediately, with no way to undo. Now we only write such changes to disk on .blend file save, plus there's undo/redo support for catalog edits now. In such cases confirmation popups should be avoided.
-rw-r--r--source/blender/editors/asset/intern/asset_ops.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/editors/asset/intern/asset_ops.cc b/source/blender/editors/asset/intern/asset_ops.cc
index 3d035396961..090cc53eb3b 100644
--- a/source/blender/editors/asset/intern/asset_ops.cc
+++ b/source/blender/editors/asset/intern/asset_ops.cc
@@ -450,7 +450,6 @@ static void ASSET_OT_catalog_delete(struct wmOperatorType *ot)
/* api callbacks */
ot->exec = asset_catalog_delete_exec;
- ot->invoke = WM_operator_confirm;
ot->poll = asset_catalog_operator_poll;
RNA_def_string(ot->srna, "catalog_id", nullptr, 0, "Catalog ID", "ID of the catalog to delete");