Skip to content

Commit

Permalink
Minor fix of translations.getTranslator() (powroupi#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
powroupi committed Jun 3, 2021
1 parent 979c5eb commit b94ee01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmd_tools/translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def getTranslator(csvfile='', keep_order=False):
translator.load_from_stream(csvfile)
elif isinstance(csvfile, dict):
translator.csv_tuples.extend(csvfile.items())
elif csvfile in bpy.data.texts:
elif csvfile in bpy.data.texts.keys():
translator.load_from_stream(bpy.data.texts[csvfile])
else:
translator.load(csvfile)
Expand Down

0 comments on commit b94ee01

Please sign in to comment.