Commit ce7e8c34 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix double unicode decoding bug

parent 6fe42d53
...@@ -239,7 +239,8 @@ class Plater(wx.Frame): ...@@ -239,7 +239,8 @@ class Plater(wx.Frame):
def add_model(self, name, model): def add_model(self, name, model):
newname = os.path.split(name.lower())[1] newname = os.path.split(name.lower())[1]
newname = unicode(newname, "utf-8") if not isinstance(newname, unicode):
newname = unicode(newname, "utf-8")
c = 1 c = 1
while newname in self.models: while newname in self.models:
newname = os.path.split(name.lower())[1] newname = os.path.split(name.lower())[1]
......
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