- Fixed to allow 4 LODS for actors

This commit is contained in:
Jason Yeung 2006-04-11 20:36:04 +00:00
parent ca19170904
commit 7b22b83733
1 changed files with 4 additions and 3 deletions

View File

@ -397,9 +397,10 @@ class Actor(DirectObject, NodePath):
# Reverse sort the doing a string->int
def sortFunc(x, y):
if not str(x).isdigit():
smap = {'h':2,
'm':1,
'l':0}
smap = {'h':3,
'm':2,
'l':1,
'f':0}
return cmp(smap[y[0]], smap[x[0]])
else:
return cmp (int(y), int(x))