瀏覽代碼

fixed bug in controlJoint

Samir Naik 21 年之前
父節點
當前提交
7b7230f2ad
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      direct/src/actor/Actor.py

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

@@ -724,7 +724,7 @@ class Actor(PandaObject, NodePath):
         be too late to add a new control during that animation.
         be too late to add a new control during that animation.
         """
         """
         partBundleDict = self.__partBundleDict.get(lodName)
         partBundleDict = self.__partBundleDict.get(lodName)
-        if partBundleDict:
+        if not partBundleDict:
             Actor.notify.warning("no lod named: %s" % (lodName))
             Actor.notify.warning("no lod named: %s" % (lodName))
             return None
             return None