mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
changed dcSuffix check
This commit is contained in:
parent
7eec1f34d8
commit
d604adf31d
@ -111,9 +111,10 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
|
|||||||
# Maybe the module name is represented as "moduleName/AI".
|
# Maybe the module name is represented as "moduleName/AI".
|
||||||
suffix = moduleName.split('/')
|
suffix = moduleName.split('/')
|
||||||
moduleName = suffix[0]
|
moduleName = suffix[0]
|
||||||
if self.dcSuffix and self.dcSuffix in suffix[1:]:
|
suffix=suffix[1:]
|
||||||
|
if self.dcSuffix in suffix:
|
||||||
moduleName += self.dcSuffix
|
moduleName += self.dcSuffix
|
||||||
elif self.dcSuffix == 'UD' and 'AI' in suffix[1:]: #HACK:
|
elif self.dcSuffix == 'UD' and 'AI' in suffix: #HACK:
|
||||||
moduleName += 'AI'
|
moduleName += 'AI'
|
||||||
|
|
||||||
importSymbols = []
|
importSymbols = []
|
||||||
@ -123,9 +124,10 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
|
|||||||
# Maybe the symbol name is represented as "symbolName/AI".
|
# Maybe the symbol name is represented as "symbolName/AI".
|
||||||
suffix = symbolName.split('/')
|
suffix = symbolName.split('/')
|
||||||
symbolName = suffix[0]
|
symbolName = suffix[0]
|
||||||
if self.dcSuffix and self.dcSuffix in suffix[1:]:
|
suffix=suffix[1:]
|
||||||
|
if self.dcSuffix in suffix:
|
||||||
symbolName += self.dcSuffix
|
symbolName += self.dcSuffix
|
||||||
elif self.dcSuffix == 'UD' and 'AI' in suffix[1:]: #HACK:
|
elif self.dcSuffix == 'UD' and 'AI' in suffix: #HACK:
|
||||||
symbolName += 'AI'
|
symbolName += 'AI'
|
||||||
|
|
||||||
importSymbols.append(symbolName)
|
importSymbols.append(symbolName)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user