mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
allow DC structs to inherit from built-in types
This commit is contained in:
parent
d3d22253e5
commit
0f368d25c5
@ -161,7 +161,7 @@ class ConnectionRepository(DoInterestManager, CConnectionRepository):
|
|||||||
self.notify.error("Module %s does not define class %s." % (className, className))
|
self.notify.error("Module %s does not define class %s." % (className, className))
|
||||||
classDef = getattr(classDef, className)
|
classDef = getattr(classDef, className)
|
||||||
|
|
||||||
if type(classDef) != types.ClassType:
|
if type(classDef) not in (types.ClassType, types.TypeType):
|
||||||
self.notify.error("Symbol %s is not a class name." % (className))
|
self.notify.error("Symbol %s is not a class name." % (className))
|
||||||
else:
|
else:
|
||||||
dclass.setClassDef(classDef)
|
dclass.setClassDef(classDef)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user