Skip to content

Commit

Permalink
Fixed a bug that left some of the potential hyphens in user names tha…
Browse files Browse the repository at this point in the history
…t POV-Ray then wouldn't accept
  • Loading branch information
Maurice Raybaud committed Apr 16, 2011
1 parent 9541cc2 commit 284c3e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion render_povray/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def splitHyphen(name):
if hyphidx == -1:
return name
else:
return name[hyphidx:].replace("-", "")
return name[:].replace("-", "")


def safety(name, Level):
Expand Down Expand Up @@ -237,6 +237,7 @@ def tabWrite(str_o):
def uniqueName(name, nameSeq):

if name not in nameSeq:
name = splitHyphen(name)
return name

name_orig = name
Expand Down

0 comments on commit 284c3e5

Please sign in to comment.