Browse Source

better import of DirectNotifyGlobal

Joe Shochet 21 years ago
parent
commit
429a075c79
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/distributed/DistributedObject.py

+ 2 - 2
direct/src/distributed/DistributedObject.py

@@ -1,7 +1,7 @@
 """DistributedObject module: contains the DistributedObject class"""
 """DistributedObject module: contains the DistributedObject class"""
 
 
 from direct.showbase.PandaObject import *
 from direct.showbase.PandaObject import *
-from direct.directnotify.DirectNotifyGlobal import *
+from direct.directnotify import DirectNotifyGlobal
 from PyDatagram import PyDatagram
 from PyDatagram import PyDatagram
 from PyDatagramIterator import PyDatagramIterator
 from PyDatagramIterator import PyDatagramIterator
 
 
@@ -20,7 +20,7 @@ class DistributedObject(PandaObject):
     (i.e. distributed) objects.  These will usually (always?) have a
     (i.e. distributed) objects.  These will usually (always?) have a
     dclass entry in a *.dc file.
     dclass entry in a *.dc file.
     """
     """
-    notify = directNotify.newCategory("DistributedObject")
+    notify = DirectNotifyGlobal.directNotify.newCategory("DistributedObject")
 
 
     # A few objects will set neverDisable to 1... Examples are
     # A few objects will set neverDisable to 1... Examples are
     # localToon, and anything that lives in the UberZone. This
     # localToon, and anything that lives in the UberZone. This