Skip to content

Commit

Permalink
Restore undo
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrettSJohnson committed Apr 1, 2024
1 parent e4e2fa0 commit 4b574a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/pmg_qt/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
]
]

Expand Down

0 comments on commit 4b574a6

Please sign in to comment.