Add undo step to Alembic and Collada importers...

Re T77754.
This commit is contained in:
Bastien Montagne 2020-06-22 12:13:09 +02:00
parent c309177edd
commit 8ffb006077
Notes: blender-bot 2023-02-14 01:11:05 +01:00
Referenced by issue #80139, Collada DAE import and Undo causes Blender to crash (fixed in 2.90 beta and 2.91 master - request to backport to LTS)
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
2 changed files with 2 additions and 0 deletions

View File

@ -670,6 +670,7 @@ void WM_OT_alembic_import(wmOperatorType *ot)
ot->name = "Import Alembic";
ot->description = "Load an Alembic archive";
ot->idname = "WM_OT_alembic_import";
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->invoke = wm_alembic_import_invoke;
ot->exec = wm_alembic_import_exec;

View File

@ -857,6 +857,7 @@ void WM_OT_collada_import(wmOperatorType *ot)
ot->name = "Import COLLADA";
ot->description = "Load a Collada file";
ot->idname = "WM_OT_collada_import";
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->invoke = WM_operator_filesel;
ot->exec = wm_collada_import_exec;