Commit ce7e8c34 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix double unicode decoding bug

parent 6fe42d53
......@@ -239,6 +239,7 @@ class Plater(wx.Frame):
def add_model(self, name, model):
newname = os.path.split(name.lower())[1]
if not isinstance(newname, unicode):
newname = unicode(newname, "utf-8")
c = 1
while newname in self.models:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment