Skip to content

Commit

Permalink
Comment out some Qt code not available yet in Unreal Ed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfboismenu committed Feb 15, 2018
1 parent 8c5d1ef commit 8067757
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@ def pre_app_init(self):
"""
# unicode characters returned by the shotgun api need to be converted
# to display correctly in all of the app windows
from tank.platform.qt import QtCore
# tell QT to interpret C strings as utf-8
utf8 = QtCore.QTextCodec.codecForName("utf-8")
QtCore.QTextCodec.setCodecForCStrings(utf8)
self.logger.debug("set utf-8 codec for widget text")

# This is often necessary to get Qt to play nice with Python and utf-8.
# from tank.platform.qt import QtCore
# # tell QT to interpret C strings as utf-8
# utf8 = QtCore.QTextCodec.codecForName("utf-8")
# QtCore.QTextCodec.setCodecForCStrings(utf8)
# self.logger.debug("set utf-8 codec for widget text")

def init_engine(self):
"""
Expand Down

0 comments on commit 8067757

Please sign in to comment.