Browse Source

Added hotkey for new LE duplicate function

Gyedo Jeon 16 years ago
parent
commit
dd71475227

+ 1 - 0
direct/src/directtools/DirectSession.py

@@ -264,6 +264,7 @@ class DirectSession(DirectObject):
             'w': ('Toggle Wireframe', 'base.toggleWireframe()', 0),
             'control-z': ('Undo', 0, 'LE-Undo'),
             'shift-z' : ('Redo', 0, 'LE-Redo'),
+            'control-d': ('Duplicate', 0, 'LE-Duplicate'),
             }
 
         self.passThroughKeys = ['v','b','l','p', 'r', 'shift-r', 's', 't','shift-a', 'w'] 

+ 1 - 0
direct/src/leveleditor/LevelEditorBase.py

@@ -120,6 +120,7 @@ class LevelEditorBase(DirectObject):
             ('DIRECT_deselectAll', self.deselectAll),
             ('LE-Undo', self.actionMgr.undo),
             ('LE-Redo', self.actionMgr.redo),
+            ('LE-Duplicate', self.objectMgr.duplicateSelected),
             ('DIRECT_manipulateObjectCleanup', self.cleanUpManipulating),
             ])