From 8770751d27c3d7141c99783e943668dfad74dfd5 Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Wed, 9 Mar 2005 20:46:11 +0000 Subject: [PATCH] drose: accept HumanDNA instead of just HumanDNAAI --- direct/src/distributed/ConnectionRepository.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/direct/src/distributed/ConnectionRepository.py b/direct/src/distributed/ConnectionRepository.py index 4628308a43..12ed8220e1 100644 --- a/direct/src/distributed/ConnectionRepository.py +++ b/direct/src/distributed/ConnectionRepository.py @@ -121,6 +121,12 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository): if classDef is None and self.dcSuffix == 'UD': #HACK: className = dclass.getName() + 'AI' classDef = dcImports.get(className) + + # Also try it without the dcSuffix. + if classDef == None: + className = dclass.getName() + classDef = dcImports.get(className) + if classDef is None: self.notify.info("No class definition for %s." % (className)) else: