mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
distributed: Fix DC file reading regression (#295)
This commit is contained in:
parent
78377ca10c
commit
0b1ad67e13
@ -333,7 +333,7 @@ class ConnectionRepository(
|
|||||||
continue
|
continue
|
||||||
classDef = getattr(classDef, className)
|
classDef = getattr(classDef, className)
|
||||||
|
|
||||||
if inspect.isclass(classDef):
|
if not inspect.isclass(classDef):
|
||||||
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)
|
||||||
|
@ -280,7 +280,7 @@ class ServerRepository:
|
|||||||
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 inspect.isclass(classDef):
|
if not inspect.isclass(classDef):
|
||||||
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