File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ def pre_app_init(self):
101
101
102
102
# Load the tk_unreal module (the Shotgun engine wrapper for Unreal)
103
103
self .tk_unreal = self .import_module ("tk_unreal" )
104
+ self .unreal_sg_engine = self .tk_unreal .config .wrapper_instance
105
+
106
+ unreal .log ("UnrealEditorEngine.pre_app_init: unreal_sg_engine {}" .format (self .unreal_sg_engine ))
104
107
105
108
def init_engine (self ):
106
109
"""
Original file line number Diff line number Diff line change
1
+ # This file is based on templates provided and copyrighted by Autodesk, Inc.
2
+ # This file has been modified by Epic Games, Inc. and is subject to the license
3
+ # file included in this repository.
4
+
5
+ wrapper_instance = None
Original file line number Diff line number Diff line change 4
4
5
5
import unreal
6
6
import sgtk .platform
7
+ import config
7
8
8
9
unreal .log ("Loading Shotgun Engine for Unreal from {}" .format (__file__ ))
9
10
@@ -14,10 +15,7 @@ def _post_init(self):
14
15
"""
15
16
Equivalent to __init__ but will also be called from C++
16
17
"""
17
- engine = sgtk .platform .current_engine ()
18
- engine .unreal_sg_engine = self
19
-
20
- unreal .log ("ShotgunEngineWrapper._post_init: unreal_sg_engine {} with tk-unreal {}" .format (self , engine ))
18
+ config .wrapper_instance = self
21
19
22
20
@unreal .ufunction (override = True )
23
21
def get_shotgun_menu_items (self ):
You can’t perform that action at this time.
0 commit comments