Josh Wilson 20 年之前
父节点
当前提交
b76a4acac3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      direct/src/actor/Actor.py

+ 1 - 1
direct/src/actor/Actor.py

@@ -329,7 +329,7 @@ class Actor(PandaObject, NodePath):
             else:
                 return cmp (int(y),int(x))
                 
-        self.__sortedLODNames.sort(sortFunc)
+        self.__sortedLODNames.sort(lambda x,y : cmp(int(y), int(x)))
 
     def getLODNames(self):
         """