Explorar o código

fixed bug in controlJoint

Samir Naik %!s(int64=21) %!d(string=hai) anos
pai
achega
7b7230f2ad
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.
         """
         partBundleDict = self.__partBundleDict.get(lodName)
-        if partBundleDict:
+        if not partBundleDict:
             Actor.notify.warning("no lod named: %s" % (lodName))
             return None