mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
uber dog UD suffix
This commit is contained in:
parent
06161a723f
commit
e3edadb94b
@ -89,6 +89,8 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
|
|||||||
moduleName = suffix[0]
|
moduleName = suffix[0]
|
||||||
if self.dcSuffix and self.dcSuffix in suffix[1:]:
|
if self.dcSuffix and self.dcSuffix in suffix[1:]:
|
||||||
moduleName += self.dcSuffix
|
moduleName += self.dcSuffix
|
||||||
|
elif self.dcSuffix == 'UD' and 'AI' in suffix[1:]: #HACK:
|
||||||
|
moduleName += 'AI'
|
||||||
|
|
||||||
importSymbols = []
|
importSymbols = []
|
||||||
for i in range(dcFile.getNumImportSymbols(n)):
|
for i in range(dcFile.getNumImportSymbols(n)):
|
||||||
@ -99,6 +101,8 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
|
|||||||
symbolName = suffix[0]
|
symbolName = suffix[0]
|
||||||
if self.dcSuffix and self.dcSuffix in suffix[1:]:
|
if self.dcSuffix and self.dcSuffix in suffix[1:]:
|
||||||
symbolName += self.dcSuffix
|
symbolName += self.dcSuffix
|
||||||
|
elif self.dcSuffix == 'UD' and 'AI' in suffix[1:]: #HACK:
|
||||||
|
symbolName += 'AI'
|
||||||
|
|
||||||
importSymbols.append(symbolName)
|
importSymbols.append(symbolName)
|
||||||
|
|
||||||
@ -114,7 +118,10 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
|
|||||||
# Does the class have a definition defined in the newly
|
# Does the class have a definition defined in the newly
|
||||||
# imported namespace?
|
# imported namespace?
|
||||||
classDef = dcImports.get(className)
|
classDef = dcImports.get(className)
|
||||||
if classDef == None:
|
if classDef is None and self.dcSuffix == 'UD': #HACK:
|
||||||
|
className = dclass.getName() + 'AI'
|
||||||
|
classDef = dcImports.get(className)
|
||||||
|
if classDef is None:
|
||||||
self.notify.info("No class definition for %s." % (className))
|
self.notify.info("No class definition for %s." % (className))
|
||||||
else:
|
else:
|
||||||
if type(classDef) == types.ModuleType:
|
if type(classDef) == types.ModuleType:
|
||||||
@ -354,9 +361,9 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
|
|||||||
if self.notify.getDebug():
|
if self.notify.getDebug():
|
||||||
print "ConnectionRepository sending datagram:"
|
print "ConnectionRepository sending datagram:"
|
||||||
datagram.dumpHex(ostream)
|
datagram.dumpHex(ostream)
|
||||||
|
|
||||||
self.sendDatagram(datagram)
|
self.sendDatagram(datagram)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# debugging funcs for simulating a network-plug-pull
|
# debugging funcs for simulating a network-plug-pull
|
||||||
|
Loading…
x
Reference in New Issue
Block a user