From a09b0fea14bf6aa8d03cd32ef8d354dda9bed2e8 Mon Sep 17 00:00:00 2001
From: Sergey Sharybin <sergey.vfx@gmail.com>
Date: Sat, 3 Sep 2011 11:31:10 +0000
Subject: [PATCH] Some more UNDO pushes for import operators. Forgot to modify
 this files in recent commit.

---
 io_import_scene_mhx.py   | 1 +
 io_mesh_stl/__init__.py  | 1 +
 io_scene_m3/import_m3.py | 1 +
 3 files changed, 3 insertions(+)

diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py
index a395de215..4004977ca 100644
--- a/io_import_scene_mhx.py
+++ b/io_import_scene_mhx.py
@@ -3000,6 +3000,7 @@ class ImportMhx(bpy.types.Operator, ImportHelper):
     bl_label = "Import MHX"
     bl_space_type = "PROPERTIES"
     bl_region_type = "WINDOW"
+    bl_options = {'UNDO'}
 
     scale = FloatProperty(name="Scale", description="Default meter, decimeter = 1.0", default = theScale)
     enums = []
diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py
index a46693210..9a40de11c 100644
--- a/io_mesh_stl/__init__.py
+++ b/io_mesh_stl/__init__.py
@@ -67,6 +67,7 @@ class ImportSTL(bpy.types.Operator, ImportHelper):
     '''Load STL triangle mesh data'''
     bl_idname = "import_mesh.stl"
     bl_label = "Import STL"
+    bl_options = {'UNDO'}
 
     filename_ext = ".stl"
 
diff --git a/io_scene_m3/import_m3.py b/io_scene_m3/import_m3.py
index 7a7678e89..a6f48cd46 100644
--- a/io_scene_m3/import_m3.py
+++ b/io_scene_m3/import_m3.py
@@ -341,6 +341,7 @@ class M3Importer(bpy.types.Operator):
     '''Import from M3 file format (.m3)'''
     bl_idname = "import_mesh.blizzard_m3"
     bl_label = 'Import M3'
+    bl_options = {'UNDO'}
 
     # List of operator properties, the attributes will be assigned
     # to the class instance from the operator settings before calling.
-- 
GitLab