@@ -46,7 +46,7 @@ def __init__(self, fw):
4646 self .p4_server = self ._get_p4_server ()
4747
4848
49- def sync_with_dlg (self , app , entities_to_sync , specific_files = False ):
49+ def sync_with_dlg (self , app , entities_to_sync , specific_files = False , child_asset_ids = None ):
5050 """
5151 Show the sync window for user file syncing
5252
@@ -56,6 +56,7 @@ def sync_with_dlg(self, app, entities_to_sync, specific_files=False):
5656 self .entities_to_sync = entities_to_sync
5757 self .app = app
5858 self .specific_files = specific_files
59+ self .child_asset_ids = child_asset_ids
5960
6061 try :
6162 # ensure this always runs on the main thread:
@@ -77,7 +78,7 @@ def _sync_with_dlg(self):
7778 from ..widgets import SyncForm
7879
7980 result , _ = self ._fw .engine .show_modal ("Perforce Sync " , self ._fw , SyncForm ,
80- self .app , self .entities_to_sync , self .specific_files )
81+ self .app , self .entities_to_sync , self .specific_files , self . child_asset_ids )
8182
8283 if result == QtGui .QDialog .Accepted :
8384 pass
@@ -100,12 +101,12 @@ def _get_p4_server(self):
100101 return str (sg_project .get (server_field ))
101102
102103
103- def sync_with_dialog (app , entities_to_sync , specific_files = False ):
104+ def sync_with_dialog (app , entities_to_sync , specific_files = False , child_asset_ids = None ):
104105 """
105106 Show the Perforce sync dialog
106107
107108 :returns Qt UI: A new Perforce sync dialog
108109 """
109110
110111 fw = sgtk .platform .current_bundle ()
111- return SyncHandler (fw ).sync_with_dlg (app , entities_to_sync , specific_files = specific_files )
112+ return SyncHandler (fw ).sync_with_dlg (app , entities_to_sync , specific_files = specific_files , child_asset_ids = child_asset_ids )
0 commit comments