@@ -53,6 +53,7 @@ def __init__(self, path):
5353 self .hierarchy_content = self .hierarchy .set_window_type (Hierarchy )
5454 self .hierarchy_content .load_scene (self .game_content .original )
5555 self .hierarchy_content .inspector = self .inspector_content
56+ self .hierarchy_content .preview = self .game_content
5657
5758 self .console_content = self .console .set_window_type (Console )
5859 for i in range (10 ):
@@ -105,7 +106,7 @@ def setup_toolbar(self):
105106 self .window .toolbar .add_action ("Copy" , "Edit" , "Ctrl+C" , "Adds item to clipboard" , testing ("copy" ))
106107 self .window .toolbar .add_action ("Paste" , "Edit" , "Ctrl+V" , "Pastes item from clipboard" , testing ("paste" ))
107108 self .window .toolbar .add_separator ("Edit" )
108- self .window .toolbar .add_action ("Rename" , "Edit" , "F2" , "Renames the selected item" , testing ( " rename" ) )
109+ self .window .toolbar .add_action ("Rename" , "Edit" , "F2" , "Renames the selected item" , self . window . rename )
109110 self .window .toolbar .add_action ("Duplicate" , "Edit" , "Ctrl+D" , "Duplicates the selected item(s)" , testing ("duplicate" ))
110111 self .window .toolbar .add_action ("Delete" , "Edit" , "Delete" , "Deletes item" , self .hierarchy_content .remove )
111112 self .window .toolbar .add_separator ("Edit" )
0 commit comments