OBJ: Enable undo for experimental OBJ importer

The new OBJ importer operator didn't register an undo event.
This commit enables the register and undo flags for the operator.

Reviewed By: Bastien Montagne, Aras Pranckevicius, Serhiy Striletksy
Differential Revision: https://developer.blender.org/D15051
This commit is contained in:
Eyad Ahmed 2022-05-31 11:00:14 +03:00 committed by Aras Pranckevicius
parent a3a138b41b
commit a30e67813d
1 changed files with 1 additions and 0 deletions

View File

@ -456,6 +456,7 @@ void WM_OT_obj_import(struct wmOperatorType *ot)
ot->name = "Import Wavefront OBJ";
ot->description = "Load a Wavefront OBJ scene";
ot->idname = "WM_OT_obj_import";
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->invoke = wm_obj_import_invoke;
ot->exec = wm_obj_import_exec;