Add undo step to Alembic and Collada importers...
Re T77754.
This commit is contained in:
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
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue