better import of DirectNotifyGlobal

This commit is contained in:
Joe Shochet 2005-02-25 23:00:33 +00:00
parent 0e8d95c618
commit 429a075c79

View File

@ -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