Просмотр исходного кода

fix bug with unicode animation names

David Rose 16 лет назад
Родитель
Сommit
1a92ac85bb
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      direct/src/actor/Actor.py

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

@@ -1813,7 +1813,7 @@ class Actor(DirectObject, NodePath):
                             controls.append(anim.animControl)
             else:
                 # get the named animation(s) only.
-                if isinstance(animName, types.StringType):
+                if isinstance(animName, types.StringTypes):
                     # A single animName
                     animNameList = [animName]
                 else: