diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-10-12 16:10:50 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-10-12 16:10:50 +0300 |
commit | a7300a217d14c7f566d0a947bbf24102df00b174 (patch) | |
tree | 6968bc8cc43e92ffabf196daed58df158cf48bab /source/blender/editors/asset/intern/asset_ops.cc | |
parent | 74ea21ec9dfdff4c5b1c00092427c49044343ca9 (diff) |
Asset Catalog Undo: send notifiers to redraw the catalog tree
Send notifiers to redraw the catalog tree after undo/redo.
Diffstat (limited to 'source/blender/editors/asset/intern/asset_ops.cc')
-rw-r--r-- | source/blender/editors/asset/intern/asset_ops.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/asset/intern/asset_ops.cc b/source/blender/editors/asset/intern/asset_ops.cc index 28cc16a9376..9bf5c243e9a 100644 --- a/source/blender/editors/asset/intern/asset_ops.cc +++ b/source/blender/editors/asset/intern/asset_ops.cc @@ -475,6 +475,7 @@ static int asset_catalog_undo_exec(bContext *C, wmOperator * /*op*/) } catalog_service->undo(); + WM_event_add_notifier(C, NC_SPACE | ND_SPACE_ASSET_PARAMS, NULL); return OPERATOR_FINISHED; } @@ -504,6 +505,7 @@ static int asset_catalog_redo_exec(bContext *C, wmOperator * /*op*/) } catalog_service->redo(); + WM_event_add_notifier(C, NC_SPACE | ND_SPACE_ASSET_PARAMS, NULL); return OPERATOR_FINISHED; } |