convert string to unicode at multiverse usd extractor

This commit is contained in:
Bo Zhou 2022-03-22 12:24:09 +09:00
parent b553fe66a0
commit cc1d6313d5

View file

@ -112,6 +112,8 @@ class ExtractMultiverseUsd(openpype.api.Extractor):
# Ensure the data is of correct type # Ensure the data is of correct type
value = instance.data[key] value = instance.data[key]
if isinstance(value, str):
value = unicode(value, "utf-8")
if not isinstance(value, self.options[key]): if not isinstance(value, self.options[key]):
self.log.warning( self.log.warning(
"Overridden attribute {key} was of " "Overridden attribute {key} was of "