mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
postponing parent present assert until after deferred generates
This commit is contained in:
parent
bcd4d48e70
commit
fc37f4f355
@ -180,7 +180,6 @@ class ClientRepositoryBase(ConnectionRepository):
|
||||
def handleGenerateWithRequiredOther(self, di):
|
||||
parentId = di.getUint32()
|
||||
zoneId = di.getUint32()
|
||||
assert parentId == self.GameGlobalsId or parentId in self.doId2do
|
||||
# Get the class Id
|
||||
classId = di.getUint16()
|
||||
# Get the DO Id
|
||||
@ -225,6 +224,7 @@ class ClientRepositoryBase(ConnectionRepository):
|
||||
|
||||
def __doGenerate(self, parentId, zoneId, classId, doId, di):
|
||||
# Look up the dclass
|
||||
assert parentId == self.GameGlobalsId or parentId in self.doId2do
|
||||
dclass = self.dclassesByNumber[classId]
|
||||
assert(self.notify.debug("performing generate for %s %s" % (dclass.getName(), doId)))
|
||||
dclass.startGenerate()
|
||||
|
Loading…
x
Reference in New Issue
Block a user