diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-10-12 16:11:13 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-10-12 16:11:13 +0300 |
commit | 7867feae56b679d5d2e2584a579b0977ddf19433 (patch) | |
tree | 19c19843c429e95d6286ff817460ae13a9fb26d8 /source | |
parent | a7300a217d14c7f566d0a947bbf24102df00b174 (diff) |
Asset Catalogs: mark 'undo push' operator as internal
Mark the `ASSET_OT_catalog_undo_push` operator as internal, as it's not
meant for artists to use directly.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/asset/intern/asset_ops.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/asset/intern/asset_ops.cc b/source/blender/editors/asset/intern/asset_ops.cc index 9bf5c243e9a..3d035396961 100644 --- a/source/blender/editors/asset/intern/asset_ops.cc +++ b/source/blender/editors/asset/intern/asset_ops.cc @@ -553,6 +553,9 @@ static void ASSET_OT_catalog_undo_push(struct wmOperatorType *ot) /* api callbacks */ ot->exec = asset_catalog_undo_push_exec; ot->poll = asset_catalog_undo_push_poll; + + /* Generally artists don't need to find & use this operator, it's meant for scripts only. */ + ot->flag = OPTYPE_INTERNAL; } /* -------------------------------------------------------------------- */ |