@@ -28,6 +28,10 @@ def _post_init(self):
28
28
config .wrapper_instance = self
29
29
30
30
# Shotgun integration components were renamed to Shotgrid from UE5
31
+ # these new methods are not available in UE4, we provide backward
32
+ # compatibility so scripts using the old methods don't break in UE5,
33
+ # but also forward compatibility, so users can start using the new
34
+ # names in UE4.
31
35
if hasattr (UESGEngine , "get_shotgrid_menu_items" ):
32
36
@unreal .ufunction (override = True )
33
37
def get_shotgrid_menu_items (self ):
@@ -47,6 +51,7 @@ def get_shotgun_menu_items(self):
47
51
"""
48
52
Provide backward compatibility.
49
53
"""
54
+ unreal .log_warning ("get_shotgun_menu_items is deprecated, get_shotgrid_menu_items should be used instead." )
50
55
return self .get_shotgrid_menu_items ()
51
56
else :
52
57
@unreal .ufunction (override = True )
@@ -59,6 +64,7 @@ def get_shotgun_menu_items(self):
59
64
engine = sgtk .platform .current_engine ()
60
65
menu_items = self .create_menu (engine )
61
66
67
+ unreal .log_warning ("get_shotgun_menu_items is deprecated, get_shotgrid_menu_items should be used instead." )
62
68
unreal .log ("get_shotgun_menu_items returned: {0}" .format (menu_items .__str__ ()))
63
69
64
70
return menu_items
@@ -74,6 +80,7 @@ def get_shotgun_work_dir(self, *args, **kwargs):
74
80
"""
75
81
Provide backward compatibility.
76
82
"""
83
+ unreal .log_warning ("get_shotgun_work_dir is deprecated, get_shotgrid_work_dir should be used instead." )
77
84
return self .get_shotgrid_work_dir (* args , ** kwargs )
78
85
else :
79
86
def get_shotgrid_work_dir (self , * args , ** kwargs ):
0 commit comments