diff --git a/direct/src/directtools/DirectSession.py b/direct/src/directtools/DirectSession.py index 1859c2aabd..c1758f8f98 100644 --- a/direct/src/directtools/DirectSession.py +++ b/direct/src/directtools/DirectSession.py @@ -748,7 +748,7 @@ class DirectSession(PandaObject): # Undo xform pose[0].setTransform(pose[1]) # Alert anyone who cares - messenger.send('DIRECT_undo') + messenger.send('DIRECT_undo', [nodePathList]) def redo(self): if self.redoList: @@ -761,7 +761,7 @@ class DirectSession(PandaObject): for pose in redoGroup: pose[0].setTransform(pose[1]) # Alert anyone who cares - messenger.send('DIRECT_redo') + messenger.send('DIRECT_redo', [nodePathList]) # UTILITY FUNCTIONS def message(self, text): diff --git a/direct/src/tkpanels/DirectSessionPanel.py b/direct/src/tkpanels/DirectSessionPanel.py index f11cafd2dd..ab0d3f1016 100644 --- a/direct/src/tkpanels/DirectSessionPanel.py +++ b/direct/src/tkpanels/DirectSessionPanel.py @@ -974,7 +974,7 @@ class DirectSessionPanel(AppShell): def pushUndo(self, fResetRedo = 1): direct.pushUndo([self['nodePath']]) - def undoHook(self): + def undoHook(self, nodePathList = []): pass def pushUndoHook(self): @@ -988,7 +988,7 @@ class DirectSessionPanel(AppShell): def pushRedo(self): direct.pushRedo([self['nodePath']]) - def redoHook(self): + def redoHook(self, nodePathList = []): pass def pushRedoHook(self): diff --git a/direct/src/tkpanels/MopathRecorder.py b/direct/src/tkpanels/MopathRecorder.py index 48d75221ba..4870edb7d3 100644 --- a/direct/src/tkpanels/MopathRecorder.py +++ b/direct/src/tkpanels/MopathRecorder.py @@ -626,7 +626,7 @@ class MopathRecorder(AppShell, PandaObject): def pushUndo(self, fResetRedo = 1): direct.pushUndo([self.nodePath]) - def undoHook(self): + def undoHook(self, nodePathList = []): # Reflect new changes pass @@ -641,7 +641,7 @@ class MopathRecorder(AppShell, PandaObject): def pushRedo(self): direct.pushRedo([self.nodePath]) - def redoHook(self): + def redoHook(self, nodePathList = []): # Reflect new changes pass diff --git a/direct/src/tkpanels/Placer.py b/direct/src/tkpanels/Placer.py index d5f2b20902..58e9123cf9 100644 --- a/direct/src/tkpanels/Placer.py +++ b/direct/src/tkpanels/Placer.py @@ -715,7 +715,7 @@ class Placer(AppShell): def pushUndo(self, fResetRedo = 1): direct.pushUndo([self['nodePath']]) - def undoHook(self): + def undoHook(self, nodePathList = []): # Reflect new changes self.updatePlacer() @@ -730,7 +730,7 @@ class Placer(AppShell): def pushRedo(self): direct.pushRedo([self['nodePath']]) - def redoHook(self): + def redoHook(self, nodePathList = []): # Reflect new changes self.updatePlacer()