Browse Source

*** empty log message ***

David Rose 24 years ago
parent
commit
ea57ce30aa
1 changed files with 8 additions and 2 deletions
  1. 8 2
      direct/src/extensions/NodePath-extensions.py

+ 8 - 2
direct/src/extensions/NodePath-extensions.py

@@ -271,8 +271,14 @@
         # upon death remove the functorFunc
         # upon death remove the functorFunc
         def lerpUponDeath(task):
         def lerpUponDeath(task):
             # Try to break circular references
             # Try to break circular references
-            del task.functorFunc
-            del task.lerp
+            try:
+                del task.functorFunc
+            except:
+                pass
+            try:
+                del task.lerp
+            except:
+                pass
         
         
         # make the task function
         # make the task function
         def lerpTaskFunc(task):
         def lerpTaskFunc(task):