Previews: allow undo'ing datablock preview generation

Allow users to undo the effect of the "Generate Preview" operator in the
asset browser (`ED_OT_lib_id_generate_preview`). Without this, the
button is too dangerous.
This commit is contained in:
Sybren A. Stüvel 2021-04-12 18:08:25 +02:00
parent 15253d18b7
commit cbd1932619
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ static void ED_OT_lib_id_generate_preview(wmOperatorType *ot)
ot->exec = lib_id_generate_preview_exec;
/* flags */
ot->flag = OPTYPE_INTERNAL;
ot->flag = OPTYPE_INTERNAL | OPTYPE_REGISTER | OPTYPE_UNDO;
}
/** \} */