From d9d24cef3eac7e4ab8529fcbc3a41adad4e75524 Mon Sep 17 00:00:00 2001
From: Antonio Vazquez <blendergit@gmail.com>
Date: Tue, 16 Aug 2022 15:20:48 +0200
Subject: [PATCH] Archimesh: Register Undo for some missing operators

Two operators were missing the option to enable the Undo registering.
---
 archimesh/achm_main_panel.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/archimesh/achm_main_panel.py b/archimesh/achm_main_panel.py
index fda383f45..482e26fde 100644
--- a/archimesh/achm_main_panel.py
+++ b/archimesh/achm_main_panel.py
@@ -35,6 +35,7 @@ class ARCHIMESH_OT_Hole(Operator):
     bl_label = "Auto Holes"
     bl_description = "Enable windows and doors holes for any selected object (needs wall thickness)"
     bl_category = 'View'
+    bl_options = {'UNDO', 'REGISTER'}
 
     # ------------------------------
     # Execute
@@ -169,6 +170,7 @@ class ARCHIMESH_OT_Pencil(Operator):
     bl_label = "Room from Draw"
     bl_description = "Create a room base on grease pencil strokes (draw from top view (7 key))"
     bl_category = 'View'
+    bl_options = {'UNDO', 'REGISTER'}
 
     # ------------------------------
     # Execute
-- 
GitLab