From 4b574a659538b41eb55179804839b4ce9e0e3616 Mon Sep 17 00:00:00 2001 From: Jarrett Johnson Date: Sun, 31 Mar 2024 20:26:00 -0400 Subject: [PATCH] Restore undo --- modules/pmg_qt/builder.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/pmg_qt/builder.py b/modules/pmg_qt/builder.py index 4f899c035..f809019eb 100644 --- a/modules/pmg_qt/builder.py +++ b/modules/pmg_qt/builder.py @@ -142,6 +142,7 @@ def sculpt_activate(self): obj_list = self.cmd.get_object_list(active_sele) if len(obj_list)==1: obj_name = obj_list[0] + self.cmd.push_undo(obj_name) self.cmd.sculpt_activate(obj_name) self.cmd.set("sculpting",1) self.sculpt_object = obj_name @@ -1257,10 +1258,9 @@ def __init__(self, parent=None, app=None): ( "@ ", None, None), ( "$Bumps", "Show VDW contacts during sculpting", "sculpt_vdw_vis_mode"), ( "@ ", None, None), - # TODO: Temporarily hidden until multiple undo supported for builder - #( "#Undo Enabled", "", "suspend_undo"), - #( "Undo", "Undo last change", self.undo), - #( "Redo", "Redo last change", self.redo), + ( "#Undo Enabled", "", "suspend_undo"), + ( "Undo", "Undo last change", self.undo), + ( "Redo", "Redo last change", self.redo), ] ]