Browse Source

isGenerated

David Rose 22 years ago
parent
commit
5e82884821
1 changed files with 7 additions and 0 deletions
  1. 7 0
      direct/src/distributed/DistributedObject.py

+ 7 - 0
direct/src/distributed/DistributedObject.py

@@ -155,6 +155,13 @@ class DistributedObject(PandaObject):
         """
         return (self.activeState < ESGenerating)
 
+    def isGenerated(self):
+        """isGenerated(self)
+        Returns true if the object has been fully generated by now,
+        and not yet disabled.
+        """
+        return (self.activeState == ESGenerated)
+
     def delete(self):
         """delete(self)
         Inheritors should redefine this to take appropriate action on delete