Commit 47229f63 authored by Travis Howse's avatar Travis Howse

Separated split and duplicate enumeration append.

parent bb32e665
...@@ -135,7 +135,8 @@ class showstl(wx.Window): ...@@ -135,7 +135,8 @@ class showstl(wx.Window):
newname=os.path.split(name.lower())[1] newname=os.path.split(name.lower())[1]
c=1 c=1
while newname in self.models: while newname in self.models:
newname=os.path.split(name.lower()+"(%d)"%c)[1] newname=os.path.split(name.lower())[1]
newname=newname+"(%d)"%c
c+=1 c+=1
self.models[newname]=stltool.stl(name) self.models[newname]=stltool.stl(name)
self.models[newname].offsets=[0,0,0] self.models[newname].offsets=[0,0,0]
......
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