mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -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))
|
||||
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))
|
||||
else:
|
||||
dclass.setClassDef(classDef)
|
||||
|
Loading…
x
Reference in New Issue
Block a user